Generated by DeepSeek V3.2| ISO 8601 | |
|---|---|
| Number | 8601 |
| Title | Data elements and interchange formats – Information interchange – Representation of dates and times |
| Version | 2019 (Fifth edition) |
| Organization | International Organization for Standardization |
| Committee | ISO/TC 154 |
| Status | Current |
| Related | ISO 2014, ISO 2015, ISO 2711 |
ISO 8601. It is an international standard covering the exchange of date- and time-related data, established by the International Organization for Standardization. The standard provides unambiguous, well-defined methods of representing calendar dates and clock times, facilitating clear communication and data interoperability across different regions and technical systems. Its primary goal is to avoid misinterpretation of numeric dates and times, particularly when data is transferred between countries with different conventions.
The standard was first published in 1988, succeeding and replacing earlier standards like ISO 2014 and ISO 2015. It is maintained by the technical committee ISO/TC 154, which is responsible for standards related to processes, data elements, and documents in commerce, industry, and administration. A core principle is the use of a 24-hour clock and a Gregorian calendar-based system, with representations designed to be easily processable by computer systems while remaining human-readable. The format is organized from the largest to the smallest unit of time, a design known as the "big-endian" order, which supports efficient lexicographic ordering.
The basic format for a calendar date is YYYY-MM-DD, such as 2023-04-15 for the fifteenth of April. This format eliminates the ambiguity inherent in notations like 04/05/2023, which is interpreted differently in the United States and much of Europe. For combined date and time representations, the standard specifies the "T" character as a delimiter, as in 2023-04-15T14:30:00. Times are expressed in Coordinated Universal Time (UTC) by appending a "Z", or with a positive or negative offset from UTC, like +05:30 for Indian Standard Time. Week dates, defined by ISO week date rules, are also supported, identifying a year and week number.
Durations, or lengths of time, are represented by starting the field with "P" (for period) and using designators like Y for years, M for months, D for days, H for hours, M for minutes, and S for seconds. For example, P3Y6M4DT12H30M5S represents a duration of three years, six months, four days, twelve hours, thirty minutes, and five seconds. Time intervals can be expressed in several ways: by a start and an end datetime (e.g., 2023-01-01T00:00:00/2023-12-31T23:59:59), by a start datetime and a duration, or by a duration and an end datetime. This provides a precise framework for scheduling and logistics operations.
The standard includes a method for defining repeating or recurring time intervals, which is useful for events like regular business hours or maintenance schedules. This is done by adding "R" and a number (or "R" for infinite repetition) before the interval notation. For instance, R5/2023-01-01T09:00:00/P1W specifies an event repeating five times, starting on the first of January at nine o'clock, recurring every week. This formalism aids in automation and planning within enterprise resource planning systems and calendar applications.
Adoption is widespread in technical fields and international contexts. It is mandated or strongly recommended in numerous Internet Engineering Task Force protocols, including those for the World Wide Web like HTTP. Major programming languages such as Python, Java, and JavaScript provide built-in support for parsing and generating these formats. Operating systems like Microsoft Windows and Unix-like systems utilize it in filesystem timestamps and log files. Its use is also prevalent in aviation, meteorology, and scientific data exchange to prevent errors.
Several other ISO standards are closely related or have been superseded. ISO 2014 originally standardized the all-numeric calendar date format, while ISO 2015 defined the week numbering system. ISO 2711 covered ordinal dates. For financial and commercial messaging, the ISO 20022 standard incorporates these date-time representations. In the realm of geographic information systems and sensor data, the ISO 19108 standard for temporal schema builds upon these concepts. The W3C also maintains related specifications like the XML Schema Definition for validating data formats. Category:ISO standards Category:Chronology Category:Data exchange