ISO 8601: Difference between revisions
Adarshatva (talk | contribs) (New page) Tags: Mobile edit Mobile web edit Advanced mobile edit |
Adarshatva (talk | contribs) No edit summary Tags: Mobile edit Mobile web edit Advanced mobile edit |
||
Line 1: | Line 1: | ||
{{Short description|International standards for dates and times}} | |||
{{Infobox | |||
| title = Current date and time expressed according to ISO 8601 <small>[{{purge|refresh}}]</small> | |||
<!-- ISO 8601-1:2019 § 3.2.1 states the separator should be a "Hyphen" character when available --> | |||
| label1 = Date in [[UTC]] | |||
| data1 = {{#time: Y-m-d}} | |||
| label2 = Time in [[UTC]] | |||
| data2 = {{#time: H:i:s"Z"}}<br />{{#time: "T"His"Z"}} | |||
| label3 = Date and time in [[UTC]] | |||
| data3 = {{#time: Y-m-d"T"H:i:s"Z"}}<br />{{#time: Ymd"T"His"Z"}} | |||
| label4 = Date and time with the offset | |||
| data4 = {{time|df-cust=Y-m-d"T"H:i:s−12:00|UTC-12:00}}<br /> | |||
{{time|df-cust=Y-m-d"T"H:i:s+00:00|UTC+00:00}}<br /> | |||
{{time|df-cust=Y-m-d"T"H:i:s+12:00|UTC+12:00}} | |||
| label5 = [[ISO week date|Week]] | |||
| data5 = {{#time: o-"W"W}} | |||
| label6 = Week with weekday | |||
| data6 = {{#time: o-"W"W-N}} | |||
| label7 = [[Ordinal date]] | |||
| data7 = {{CURRENTYEAR}}{{not a typo|‐}}{{padleft:{{#expr:{{#time: z}}+1}}|3}} <!-- Use U+2010 hyphen per ISO --> | |||
}} | |||
{{Time sidebar}} | |||
'''ISO 8601''' is a global standard that facilitates the exchange and communication of date and time-related information across the world. Developed and maintained by the [[International Organisation for Standardisation]] (ISO), it was initially published in 1988, with subsequent updates in 1991, 2000, 2004, and 2019, along with an amendment introduced in 2022. This standard offers a clear and precise method for representing calendar dates and times, aiming to prevent misinterpretation of numeric dates and times when data is shared among countries that follow different conventions. | '''ISO 8601''' is a global standard that facilitates the exchange and communication of date and time-related information across the world. Developed and maintained by the [[International Organisation for Standardisation]] (ISO), it was initially published in 1988, with subsequent updates in 1991, 2000, 2004, and 2019, along with an amendment introduced in 2022. This standard offers a clear and precise method for representing calendar dates and times, aiming to prevent misinterpretation of numeric dates and times when data is shared among countries that follow different conventions. | ||
Revision as of 16:56, 3 March 2025
Date in UTC | 2025-06-02 |
---|---|
Time in UTC | 02:56:21Z T025621Z |
Date and time in UTC | 2025-06-02T02:56:21Z 20250602T025621Z |
Date and time with the offset | 2025-06-01T14:56:21−12:00 UTC−12:00 [refresh] 2025-06-02T02:56:21+00:00 UTC+00:00 [refresh] |
Week | 2025-W23 |
Week with weekday | 2025-W23-1 |
Ordinal date | 2025‐153 |
ISO 8601 is a global standard that facilitates the exchange and communication of date and time-related information across the world. Developed and maintained by the International Organisation for Standardisation (ISO), it was initially published in 1988, with subsequent updates in 1991, 2000, 2004, and 2019, along with an amendment introduced in 2022. This standard offers a clear and precise method for representing calendar dates and times, aiming to prevent misinterpretation of numeric dates and times when data is shared among countries that follow different conventions.
The ISO 8601 standard encompasses various representations and formats, including dates in the Gregorian calendar (as well as the proleptic Gregorian calendar), times based on a 24-hour clock with an optional UTC offset, time intervals, and combinations of these elements. Importantly, the standard does not assign specific meanings to any components of the dates or times; their interpretation relies on the context in which they are used. Additionally, representations must avoid terms that lack a defined numerical meaning within the standard (such as references to years in the Chinese calendar) or that do not consist of computer characters (therefore excluding images or sounds).
In accordance with the ISO 8601 interchange standard, dates and times are organized so that the largest temporal unit (usually the year) appears first on the left, followed by each smaller unit to the right. These representations must utilize Arabic numerals and specific computer characters (like "‐", ":", "T", "W", "Z") that have designated meanings within the standard. Consequently, common descriptors such as "January," "Thursday," or "New Year's Day" are not permitted in interchange representations under this standard.