Re: [Sedate] A syntax proposal: floating and future times

Justin Grant <justingrant.ietf.public@gmail.com> Mon, 08 November 2021 17:44 UTC

Return-Path: <justingrant.ietf.public@gmail.com>
X-Original-To: sedate@ietfa.amsl.com
Delivered-To: sedate@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7D1733A05D0 for <sedate@ietfa.amsl.com>; Mon, 8 Nov 2021 09:44:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3RTo_CyomSl0 for <sedate@ietfa.amsl.com>; Mon, 8 Nov 2021 09:44:12 -0800 (PST)
Received: from mail-yb1-xb30.google.com (mail-yb1-xb30.google.com [IPv6:2607:f8b0:4864:20::b30]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 327123A048D for <sedate@ietf.org>; Mon, 8 Nov 2021 09:44:12 -0800 (PST)
Received: by mail-yb1-xb30.google.com with SMTP id e136so42412573ybc.4 for <sedate@ietf.org>; Mon, 08 Nov 2021 09:44:12 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LIyFsXJN0UH6OoxCNJNilzgRe3DFhMZiTheo6EzDQjM=; b=QhLNQM9ybMZ+bt+sJgulxAIDuEf0Lttf7gDd++K+F3Xdsjx9gd2fRm0q5GzogOdKlv Rlr9kWkaQamuQCmm08unPES+Bgc32AVPL/qP4d1qImZmgWbrXs2P1+dWuK3ysg7f2Q1D T6KjLZunk25n8qm2HYzZeb2XGWesegdgdo04IaCPjkDVyoVyfraFH1kcrcXP8XzTsTHK tE5AbSGwtXf8bme8TYUZ/Tw+nwxQ04oPDSs0VZ+2Ccaow8qIDN/Yv/haJgWg50ojyF4f 0bWMTmZC6y3FU7aBzVR6fOSUyZ+AMWn1o8WI3/P2enthruHADU4eE0a9tPFlsHc0jYO/ qJrg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LIyFsXJN0UH6OoxCNJNilzgRe3DFhMZiTheo6EzDQjM=; b=Hgy2FUea7hkGk/Cxpa/MuyQKmEt8BJhJ/uRYhs4R4m9Z/8LnIpa3NwySJiJOrX8ttk POqbfFpm9k+hYpod33GPEMFPf9bnm7cLME4ixh2vuo8KYwI34a7ZBa5CBnyiXlcxUtcU kNpSCFDPK7RORighrFKWFTPb2B54hbuXeJV8gWAWJNYaCfxM8NI2FztttERAMmGtMR3/ MvBpc8J6FMHlMsiycKnQDOBKkhT1syDE04hLuTssjzS+9JdH0zAKSPmK0iMws2o0HlgJ MdgDaNG4foRJUf6XP9NhEpSDsnHONadkXGED+BlH79D2wgnhPGyGhm7uYiZiNOeaoyGA LE0A==
X-Gm-Message-State: AOAM5319cguf+ngQbhjhYDFQskoQjm/JyxCLimT0IQpnPbbHEmqwmzWa +dqGyvVQ9KkLyDnOqlHOBndF8H8gb4tJ1LY6MSwJC7PRlfU=
X-Google-Smtp-Source: ABdhPJwDFiSS9+gmpp+wPnSWQAd7Jz/Jp9uWKWQbYxREXh0JDU8jq0QIf3LZ+1cjjN4oWAryFoDqVrAEG6NwUkyyySg=
X-Received: by 2002:a25:aba3:: with SMTP id v32mr1063738ybi.358.1636393450332; Mon, 08 Nov 2021 09:44:10 -0800 (PST)
MIME-Version: 1.0
References: <dd7c1028-09bc-4839-b6d4-68e14e99b349@dogfood.fastmail.com> <c0dbaa85-5e5e-409d-a613-9302e9103283@dogfood.fastmail.com> <088a5135-1a39-4135-b8d7-e61113e3c143@beta.fastmail.com> <8964ee5c-463e-44cd-a2b4-e1e1a419337b@dogfood.fastmail.com> <CACy7CfgD+P9GZHy2HG=dSYubJyutX_7YnnW-gj=4FXbV1n4Anw@mail.gmail.com> <67cbf820-a116-4c6b-aa2d-539174668021@dogfood.fastmail.com> <CACy7CfjCCTVM9Dbu6EDJ_2kZbNkAge0kRYosmJ0Tv_dB7Hq7-w@mail.gmail.com> <e52240b2-9969-c55d-f08e-c51f052c1cf5@igalia.com> <CABxsp=kpva6fkE3fdZmJn9PVOk=Ru1NLgzaybWTwBAWn99rggA@mail.gmail.com>
In-Reply-To: <CABxsp=kpva6fkE3fdZmJn9PVOk=Ru1NLgzaybWTwBAWn99rggA@mail.gmail.com>
From: Justin Grant <justingrant.ietf.public@gmail.com>
Date: Mon, 08 Nov 2021 09:43:59 -0800
Message-ID: <CACy7Cfjsa3yP+hK51Gtn8ivwTo-MXrKUk3NWeNvF3KJZBtG3tg@mail.gmail.com>
To: Shane Carr <sffc=40google.com@dmarc.ietf.org>
Cc: Ujjwal Sharma <ryzokuken@igalia.com>, sedate@ietf.org
Content-Type: multipart/alternative; boundary="00000000000051e76c05d04a8aeb"
Archived-At: <https://mailarchive.ietf.org/arch/msg/sedate/jnFAfnH2XRxxudKgLWgQnFrIhmE>
Subject: Re: [Sedate] A syntax proposal: floating and future times
X-BeenThere: sedate@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Serialising Extended Data About Times and Events <sedate.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/sedate>, <mailto:sedate-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/sedate/>
List-Post: <mailto:sedate@ietf.org>
List-Help: <mailto:sedate-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/sedate>, <mailto:sedate-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Nov 2021 17:44:17 -0000

>
> However, would it be useful if there were an annotation to declare the
> intent within the datetime string?  Something like

2022-11-26T20:00:00+11:00[Australia/Melbourne][offset=ignore]


For cases where the offset is known, but the sender wishes to communicate
their intent to prefer either offset or IANA name, then another extension
seems like a reasonable possibility to bikeshed. (Although it does break
backwards-compatibilty with RFC 3339 so I suspect it may get pushback from
folks who care more about backwards compat.)

But I think a more fundamental issue is that, at least as I undertsand it,
floating times as specified in RFC 5545 3.3.5
<https://datatracker.ietf.org/doc/html/rfc5545#section-3.3.5> are not
stored with an offset at all. The original offset is unknown.

      To properly communicate a
      fixed time in a property value, either UTC time or local time with
      time zone reference MUST be specified.


This is why I assumed that a subset was the only appropriate way to
serialize that offset-less data model, because one of the required
components was missing.

Cheers,
Justin



On Mon, Nov 8, 2021 at 8:13 AM Shane Carr <sffc=40google.com@dmarc.ietf.org>
wrote:

> Two issues about storing a floating time with a time zone but not an
> offset are (1) ambiguities around summer time transitions and (2) summer
> time rules are subject to change.  Storing an offset along with the time
> zone solves these issues, but introduces another: should the offset or the
> time zone "win" in the case of a conflict?
>
> In Temporal, we solve this via an API option
> <https://tc39.es/proposal-temporal/docs/zoneddatetime.html#from> called
> "offset" to declare the intent.  There is a further "disambiguation" option
> to handle the summer time conflict.
>
> However, would it be useful if there were an annotation to declare the
> intent within the datetime string?  Something like
>
> 2022-11-26T20:00:00+11:00[Australia/Melbourne][offset=ignore]
> 2022-11-26T20:00:00+11:00[Australia/Melbourne][offset=prefer]
>
>
> On Mon, Nov 8, 2021 at 4:02 AM Ujjwal Sharma <ryzokuken@igalia.com> wrote:
>
>> Hello everyone!
>>
>> First of all, thanks Bron for kicking some energy into this discussion.
>>
>> On 08/11/2021 16.08, Justin Grant wrote:
>> > I'd suggest that one way to achieve both camps' goals might be to split
>> > the RFC text into two buckets (I'm assuming sections in the same
>> document):
>>
>> I apologize for some of the initial misunderstanding in this thread,
>> since it seems that I didn't manage to convey the updates from the
>> previous IETF meetings to the Temporal champions very well and Justin
>> seems to be a little out of the loop.
>>
>> We received pushback in the past against allowing "timestamps" that are
>> subsets of the RFC3339 format, which is why Bron made this proposal,
>> which tries to reach a good middle-ground (it perfectly represents a
>> floating time without relying on the non-standard format which omits the
>> offset).
>>
>> Now, as you mentioned, this is of course not ideal, since omitting the
>> offset is simpler, though it comes at the cost of relying on a
>> non-standard (atleast as of yet) representation. While I'm not opposed
>> to standardizing this format, there are a number of folks who have their
>> doubts regarding this subject, and therefore we decided to keep it
>> off-limits for the time-being.
>>
>> There's some ways we could try to standardize the subsets you mention
>> without upsetting others, but IIUC that work is currently not in the
>> scope of SEDATE as per the current charter.
>>
>> One way I could imagine this being done would be to have a second RFC
>> that reifies some of these subsets of the full 3339 format (eg:
>> "floating date", "floating time", "floating datetime") and then we could
>> change the current extension RFC to allow extending any of these formats
>> in addition to the full 3339 format. The former could be a simple RFC,
>> containing just the ABNF grammar for the supported formats as well as
>> some motivating use-cases perhaps.
>>
>> What do folks think? Would the RFC be within the scope of CALEXT
>> instead? I'd believe so since a majority of the formats would have the
>> strongest use-cases within the calendaring space.
>>
>> Ujjwal
>>
>> --
>> Ujjwal "Ryzokuken" Sharma (he/him)
>>
>> Compilers Hacker, Node.js Core Collaborator and Speaker
>>
>> --
>> Sedate mailing list
>> Sedate@ietf.org
>> https://www.ietf.org/mailman/listinfo/sedate
>>
> --
> Sedate mailing list
> Sedate@ietf.org
> https://www.ietf.org/mailman/listinfo/sedate
>