iso-8601: Difference between revisions
Jump to navigation
Jump to search
(→RFC 3339: noted need to use date time formats beyond what RFC 3339 limits.) |
(added programmatic implementations of ISO 8601 and links to StackOverflow and Wikipedia's page on ISO 8601 implementations) |
||
Line 1: | Line 1: | ||
=ISO 8601= | =ISO 8601= | ||
The '''International Standards Organisation''''s standard, number '''8601''' is an international standard for date and time representations. It is used for all date-time representations in microformats. | The '''International Standards Organisation''''s standard, number '''8601''' is an international standard for date and time representations. It is used for all date-time representations in microformats, as well as a number of other formats (XML, XML Schema Datatypes, RDF, Atom). | ||
==Overview== | ==Overview== | ||
Line 25: | Line 25: | ||
Microformats {{should}} re-use <nowiki>RFC 3339</nowiki>, but {{must not}} be limited to it, in order to include both more human readable, yet still easily unambiguously parsable, alternatives, as well as ISO 8601 features deemed to be useful. | Microformats {{should}} re-use <nowiki>RFC 3339</nowiki>, but {{must not}} be limited to it, in order to include both more human readable, yet still easily unambiguously parsable, alternatives, as well as ISO 8601 features deemed to be useful. | ||
==ISO 8601 implementations in programming libraries== | |||
* JodaTime - the Java date-time library - [http://joda-time.sourceforge.net/cal_iso.html ISO8601 Java calendar system] | |||
* Perl: DateTime::Format::ISO8601 | |||
==Issues== | ==Issues== | ||
Line 32: | Line 36: | ||
==See also== | ==See also== | ||
*[http://en.wikipedia.org/wiki/ISO_8601 ISO 8601 on Wikipedia] | *[http://en.wikipedia.org/wiki/ISO_8601 ISO 8601 on Wikipedia] | ||
** [http://en.wikipedia.org/wiki/ISO_8601_usage ISO 8601 usage on Wikipedia] | |||
* [http://isotc.iso.org/livelink/livelink/4021199/ISO_8601_2004_E.zip?func=doc.Fetch&nodeid=4021199 ISO 8601:2004(E) from ISO] (zip-pdf, 228KB) | * [http://isotc.iso.org/livelink/livelink/4021199/ISO_8601_2004_E.zip?func=doc.Fetch&nodeid=4021199 ISO 8601:2004(E) from ISO] (zip-pdf, 228KB) | ||
* [http://www.iso.org/iso/en/prods-services/popstds/datesandtime.html Summary of 8601 by ISO] | * [http://www.iso.org/iso/en/prods-services/popstds/datesandtime.html Summary of 8601 by ISO] | ||
Line 39: | Line 44: | ||
* [http://www.dmoz.org/Science/Reference/Standards/Individual_Standards/ISO_8601/ ISO 8601 at the Open Directory Project] | * [http://www.dmoz.org/Science/Reference/Standards/Individual_Standards/ISO_8601/ ISO 8601 at the Open Directory Project] | ||
* [http://www.w3.org/TR/NOTE-datetime W3C Specification about UTC Date and Time] and IETF Internet standard <nowiki>RFC 3339</nowiki>, based on ISO 8601 | * [http://www.w3.org/TR/NOTE-datetime W3C Specification about UTC Date and Time] and IETF Internet standard <nowiki>RFC 3339</nowiki>, based on ISO 8601 | ||
* StackOverflow: [http://stackoverflow.com/questions/tagged/iso-8601 iso-8601 tag] - questions about iso-8601 as related to JavaScript, PHP, MySQL etc. | |||
==Related pages== | ==Related pages== |
Revision as of 19:43, 2 May 2010
ISO 8601
The International Standards Organisation's standard, number 8601 is an international standard for date and time representations. It is used for all date-time representations in microformats, as well as a number of other formats (XML, XML Schema Datatypes, RDF, Atom).
Overview
For a plain-language overview of ISO 8601, we recommend the ISO 8601 summary by Markus Kuhn.
Microformats
Microformats using ISO8601 include:
RFC 3339
RFC 3339 defines a profile of ISO 8601 for the use in Internet protocols and standards.
- It explicitly excludes durations and dates before the common era.
- The more complex formats like week numbers and ordinal day are not permitted (see RFC 3339, section 5.6).
Microformats SHOULD re-use RFC 3339, but MUST NOT be limited to it, in order to include both more human readable, yet still easily unambiguously parsable, alternatives, as well as ISO 8601 features deemed to be useful.
ISO 8601 implementations in programming libraries
- JodaTime - the Java date-time library - ISO8601 Java calendar system
- Perl: DateTime::Format::ISO8601
Issues
- How should dates before the common era be marked up? Andy Mabbett
- If a web page is created or edited by a non-technical human, it is unfriendly to expect them to work in ISO date format. Charles Belov
See also
- ISO 8601 on Wikipedia
- ISO 8601:2004(E) from ISO (zip-pdf, 228KB)
- Summary of 8601 by ISO
- Technical Committee ISO/TC 154, Processes, data elements and documents in commerce, industry and administration.
- The Mathematics of the ISO 8601 Calendar
- Current date in week date and ordinal date format
- ISO 8601 at the Open Directory Project
- W3C Specification about UTC Date and Time and IETF Internet standard RFC 3339, based on ISO 8601
- StackOverflow: iso-8601 tag - questions about iso-8601 as related to JavaScript, PHP, MySQL etc.