[tz] localized date without time

Tim Parenti tim at timtimeonline.com
Thu Aug 1 02:00:50 UTC 2024


On Wed, 31 Jul 2024 at 13:34, Alejandro Colomar via tz <tz at iana.org> wrote:

> I don't see any way to print something like 2023-09-21+02:00 in
> standardese.  Is this a defect in ISO 8691?


This doesn't particularly strike me as a defect of ISO 8601.  The
"2023-09-21" only gives a precision of a day, and the "+02:00" (which
extends times, not dates) cannot give me enough information to convert it
to, say, my locale.  In particular, whether I should convert that to
"2023-09-20" or "2023-09-21" in my local time (-04:00) is entirely
dependent on the time of day, which has gone unspecified, and to convert to
"2023-09-20/21" would be incorrect as that has a duration of two days.

Those who want to refer to a localized calendar date as an interval could
use the corresponding interval (or duration) notations, such as:

2023-09-21T00:00:00+02:00/24:00:00+02:00
2023-09-21T00+02:00/24+02:00
2023-09-21T00+02/P1D

--
Tim Parenti
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mm.icann.org/pipermail/tz/attachments/20240731/d291a62c/attachment.html>


More information about the tz mailing list