开发者

What kind of date format?

开发者 https://www.devze.com 2023-03-08 14:03 出处:网络
I got the source data,and in their source contains date with this format 20开发者_如何学Go11-01-12T14:41:35.7042252+01:00

I got the source data,and in their source contains date with this format

20开发者_如何学Go11-01-12T14:41:35.7042252+01:00

I don't know which is format of date they are using.?


its ISO 8601 date (added in PHP 5)

you can get it using c in date('c') return 2004-02-12T15:19:21+00:00

additional Note:

by using r ;date('r') you will get date like this Thu, 21 Dec 2000 16:01:07 +0200

REFERNECE


I'll break 2011-01-12T14:41:35.7042252+01:00 down:

2011-01-12 = yyyy-mm-dd

T means Time is next

14:41 = hh:mm

35.7042252 = seconds.decimal-fraction-of-second

+01:00 = timezone e.g. UTC plus 1 hour.

See http://www.w3.org/TR/NOTE-datetime for details.

0

精彩评论

暂无评论...
验证码 换一张
取 消