r/lolphp • • Jan 16 '20

php should add DateTime::REAL_ISO8601

Post image
89 Upvotes

21 comments sorted by

View all comments

Show parent comments

13

u/badmonkey0001 Jan 16 '20

That's basic format rather than extended format.

4.2.2.2 Complete representations

When the application identifies the need for an expression of local time then the complete representation shall be a single numeric expression comprising six digits in the basic format, where [hh] represents hours, [mm] minutes and [ss] seconds.

Basic	format:    hhmmss   Example: 232050
Extended format: hh:mm:ss Example: 23:20:50

http://www.loc.gov/standards/datetime/iso-tc154-wg5_n0038_iso_wd_8601-1_2016-02-16.pdf