-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timestamps: ISO8601 or RFC3339? #7
Comments
I agree with using RFC3339. Unless you want to talk about dates before the common era (BC). Any other thoughts? What are other efforts using for timestamps? |
Interestingly XML schema and its dateTime type follows ISO 8601. So anyone The point is we just need to be clear about standards in a particular On Monday, 11 January 2016, Daniel Appelquist <notifications@github.com
Adam Cooper Tel: 07973 123 038 |
I think it's worth being clear about the relationship between RFC 3339 and ISO 8601. RFC 3339 is based on ISO 8601 and in fact includes an Internet profile of ISO 8601. However, RFC 3339 §5.5 says:
From my point of view, I would say that where RFC3339 is sufficient for a given set of requirements, then it's advisable to use it alone (not full ISO 8601) to maintain simplicity. |
Thanks @philandstuff. I think your statement above could be a good example of “standards guidance” that this community could be issuing. Placeholder here: https://alphagov.github.com/tech-and-data-standards/guidance/timestamps/ |
After reading RFC-3339, a 17-page document in which not a single working example is given, I still have no idea what such a time representation looks like and how it differs from ISO-8601. In fact, when I search for If we're trying to establish a standards document of some kind, can we perhaps include a human-friendly example of what's being recommended? |
I guess you missed page 9 of RFC-3339, which is the examples section. But you're right, more useful to this discussion would an be analysis of what it doesn't have, compared to ISO-8601. BTW The wikipedia page is shown only at the top of the search results only because of some Duck Duck Go specific thing. Google doesn't show it, for example. |
A question on Stack Overflow sums up the relationship quite nicely...
|
Interesting prior art from a non-normative w3c note: https://www.w3.org/TR/NOTE-datetime
this allows more possibilities that RFC 3339 -- ie you can specify things less precisely than to the second, and in particular you can specify dates, months and years -- but is open without restriction, unlike ISO 8601. |
NB this topic has come up again in the Open Standards Hub. |
This discussion is now relevant to the Date-Times and Time-stamps standards challenge which is now open for responses - The suggested solution is ISO 8601 notation for dates and times in online documents, spreadsheets, databases and for filenames and online references such as URLs. As with previous challenges, the comments and responses made contribute to the final proposal for the approach to meeting a challenge with a standard. Please add new comments to the challenge/issue. |
Now #37 has taken these points into the conversation. |
@philandstuff asks: on a practical level, why might one prefer RFC 3339 or ISO 8601 as a datetime standard? I'm considering adopting RFC3339 for #registers because it's freely available and simpler
The text was updated successfully, but these errors were encountered: