Strictly speaking, this title may not be correct, because I first tried it. The ISO8601 time format standard should be similar to: 2016-01-18T23: 41: 00-08:00, the UTC time format is similar to using a foreign API for a project. The returned time
Strictly speaking, this title may not be correct, because I first niang a bit, ISO8601 time format standard should resemble: 2016-01-18t23:41:00-08:00, and UTC time format is almost similar
In doing a project using a foreign API, the return time
/**
* UTC time Conversion yyyy-mm-dd ' T ' HH:mm:ss. SSSSSSZ eg 2016-10-26t08:20:53.131252z:
* @return Date
* @throws parseexception
* @author WANGZY25
* Date October 26, 2016 afternoon 4:38:41
* *
/public static Date
//获得当前时间并且转为字符串-(NSString *) datetransformtotimestring{NSDate*currentdate = [NSDate Date];//get the current time to UTC time 2014-07-16 07:54:36 UTC (UTC time is 8 hours longer than the standard difference)//Convert to StringNSDATEFORMATTER*DF =
On the Swagger UI model schema, the field date is displayed as "date": "2018-10-15t09:10:47.507z" but I need to use it as "date": "2018-9-26 12:18:48".Tips: The following two formats are just simple to understand a bit is not very comprehensive,
The time used in the Cloudstack project is UTC time, specifically what is UTC time we can Baidu, but we need time is normal time, so in Guotai Junan development test Cloud, synchronous resource management in the synchronization of virtual machine
This is a creation in
Article, where the information may have evolved or changed.
Fork Someone else a repository date resolution
The package is a simple function of converting an unknown date format into a standard date format, which can be used as
ISO 8601 extended format YYYY-MM-DDTHH: mm: ss. sssZ example: (section circled with a red border)
Note: This format is supported only when ECMAScript 5 is compatible. Browsers that support this time format include IE9, Chrome, FireFox, Safari, etc.
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.