In the actual development process will often need to encapsulate the date type of data in XML or JSON format on the network for transmission, in addition, when the date type of data stored in the SQLite database and then fetched only the date of the
Php outputs the list of global time zones. Php outputs the list of global time zones as follows: 1234567891011121314151617181920212223242526272829303132333435363738394 php outputs the list of global time zones
The specific implementation method is
GMT: Hotell gyllene Geten Standard TimeBeijing Time =gmt time + 8 hoursDatatime nowdate = Datatime.now;Nowdate.tostring ("R"); Effect: Wed, 16:24:33 GMTExplanation of the parameters:D ShortDatePatternD LongdatepatternF Full Date and time (long date
/// /// convert the local time to GMT // Public static string togmtstring (datetime DT) {return DT. touniversaltime (). tostring ("R ");}
String S = togmtstring (datetime. Now );
// Local time: 15:04:39
// The converted time is Thu, 29 Sep 2011 07:
///local time to GMT time
/// public
static string togmtstring (DateTime dt)
{return
dt. ToUniversalTime (). ToString ("R");
}
string s = togmtstring (DateTime.Now);
local time: 2011-9-29 15:04:39
The
2014-07-07 Linux Common commandsRead some articles on linuxtoy.org collect some common commands==================First, PS, kill use for referenceSecond, the Ubuntu tips threeThird, minimize the installation of UbuntuFour, Linux Mint set timeOne to
Front.
The Date object is a data type built into the JavaScript language and is used to provide an operational interface for date and time. The Date object was created on the basis of the Java.util.Date class in earlier Java, and for this reason,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.