3 ms·
Both comma and dot are allowed. My copy of ISO 8601-2004 says in section 4.2.2.4 “Representations with decimal fraction“: << If a decimal fraction is included,
by fanf2 8y ago
Both comma and dot are allowed. My copy of ISO 8601-2004 says in section 4.2.2.4 “Representations with decimal fraction“:
<< If a decimal fraction is included, lower order time elements (if any) shall be omitted and the decimal fraction shall be divided from the integer part by the decimal sign specified in ISO 31-0, i.e. the comma [,] or full stop [.]. Of these, the comma is the preferred sign. >>
Also, RFC 3339 is useful to have as a specific standard profile of ISO 8601, because 8601 comprises several formats with lots of options.
- geocar 8y ago> Both comma and dot are allowed. They are distinct formats: You're not going to alternate them in your output. You're going to output one or the other. > Also, RFC 3339 is useful to have as a specific standard profile of ISO 8601, because 8601 comprises several formats with lots of options. RFC3339 describes ISO8601 well enough. Is there something you think I missed?
- fanf2 8y agoI didn't notice any glaring omissions, tho if you are including DJB's binary format you should also include the NTP and PTP scales. RFC 3339 doesn't include the ISO 8601 week calendar formats, nor does it include the 8601 syntax for time periods. 3339 is a lot simpler than 8601.