The ISO format for UTC (Universal Coordinated Time) time is defined by the ISO 8601 standard and has two main forms: basic and extended.
ISO 8601 UTC Time Formats
According to the provided reference, UTC represents the time at the zero meridian, near Greenwich, England, and the standard formats are:
- Basic: yyyymmddThhmmss+|–hhmm
- Extended: yyyy-mm-ddThh:mm:ss+|–hh:mm
Here's a breakdown of each component:
Component | Description | Example (Extended) | Example (Basic) |
---|---|---|---|
yyyy | Year | 2024 | 2024 |
mm | Month | 07 | 07 |
dd | Day | 27 | 27 |
T | Separator indicating the start of the time | T | T |
hh | Hour (24-hour format) | 10 | 10 |
mm | Minute | 30 | 30 |
ss | Second | 15 | 15 |
+|–hh:mm | Time zone offset from UTC | +00:00 | +0000 |
Examples of ISO 8601 UTC Time
Here are a few examples to illustrate the formats:
- Extended Format Example: 2024-07-27T10:30:15+00:00 (July 27, 2024, at 10:30:15 UTC)
- Basic Format Example: 20240727T103015+0000 (July 27, 2024, at 10:30:15 UTC)
In both cases, "+00:00" (extended) or "+0000" (basic) indicates that the time is already in UTC, meaning there is no offset from UTC.