How does plaintext NSDate work?

I put it in plist and got this in plain text:

2010-11-03T16: 37: 09Z

So my guess is:

2010-11-03 => Nov 3, 2010

T => time (?)

16:37:09 => 4.37: 09PM

Z =>? no idea

I want to recreate this in a php file that displays the time and date? I just want to make sure that I just copy the same as above, but leave T and Z to work?

thank

+3
source share
1 answer

This is the ISO 8601 formatting (UTC, Combined):

http://en.wikipedia.org/wiki/ISO_8601

You can use NSDateFormatter (iOS) or date_format / date (PHP) to reformat the date before using it.

+1
source

Source: https://habr.com/ru/post/1774565/


All Articles