Search code examples
datedatetimestandardsiso8601

In a ISO8601 date, can a UTC time be represented with +00:00 suffix?


According to ISO 8601, is a timestamp like this valid?:

2019-03-06T12:38:51+00:00

According to Wikipedia:

An offset of zero, in addition to having the special representation "Z", can also be stated numerically as "+00:00", "+0000", or "+00".

But in the standard there is mention or example where the offset is zero. It just states the use of the suffix Z for UTC times.


Solution

  • Yes, it's valid and the important wordage from the standard is actually right there in the screenshot you posted, in section 5.3.4.1:

    It shall be expressed as positive [...] if the local time is ahead of or equal to UTC [...]