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

Shane Carr <shane@unicode.org> Mon, 08 November 2021 15:44 UTC

Return-Path: <shane@unicode.org>
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 4C6E03A1070 for <sedate@ietfa.amsl.com>; Mon, 8 Nov 2021 07:44:34 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level:
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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=unicode-org.20210112.gappssmtp.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 M-vFsEizzxKt for <sedate@ietfa.amsl.com>; Mon, 8 Nov 2021 07:44:30 -0800 (PST)
Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) (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 E9DB73A1052 for <sedate@ietf.org>; Mon, 8 Nov 2021 07:44:23 -0800 (PST)
Received: by mail-oi1-x22b.google.com with SMTP id m6so2266266oim.2 for <sedate@ietf.org>; Mon, 08 Nov 2021 07:44:23 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unicode-org.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PPKBQHb4I+iQYDcZh+j9AQXNtCTzJTkjXwxue9yrIW8=; b=v+F1iJstz9r5atXreoEly7KRNoNCbMDASKBLupjv1T5k7+opiWJj9iqfbp/bid42zs rkOTOHcT73UI7hoxExntBlPZu7XAvcgsxJWePtv/MJSpVMasxcOOxI23WEDyeNj2j5nX k2kyF3mhXnD4bMQKHpg5DP5hk/06LRpH1u5Ll13md5hGjHtpLrqIN405tmRb6MokCzSn vtuIwPPe/uk3EdSx+T7itzk+GxCureCz5g0kIY0lURA52nGJmv9nwevwKTchZrbLuafe 7tsfJznCFXmYbJOWSbudq+cAZq6ZVbjJUFpomX7H1m0FMaq6Z9WC+k+US2zQ1lzMaoUA zQxQ==
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=PPKBQHb4I+iQYDcZh+j9AQXNtCTzJTkjXwxue9yrIW8=; b=VVeBrwGkw91G3bQ2drDMI50H9KdDJmhr/Id+MSnzapLT5wbABaQ0BaqqKERXX31flA 9lja426CIu6iJdn+/9D7MChwi+g/7sGdu6/4CJ879G3aQf6o7bW5PILvNeKAvJvUGRiD SHUjOqBJ7pYyTvpDINQa0R4hYFdSIcbljngZ/YNKN8CcWV9mAb7D1OAMDu8Z5RXDPQAL tNbYdYlX8lOsFaVwRxgA//9l9+x9tvDdCJUIJ0pLWFywRNulcQki0xM5aHe7PHPjd7IK Zap9uXuxzmaA2qbTD0BITMJWzuWR3eSn2EzCAnsPAOYerM53j5jm7KG/yzapT0+qAlAQ UbSg==
X-Gm-Message-State: AOAM530XgPatKObLTeu/68IXWvbXWDn0ZY/Y9pCIwYlL29HdSVM0GeBc KfCxwibucz+SBTKzUd07w1bpdmSTcIDeiwYxgwqFp1+tBAnnozgd8RICo9p22zZ4VPDkALIrYNj zVFDjE+ME
X-Google-Smtp-Source: ABdhPJxRbIrPHpB9+Sgu4WHvOe6wIRmS7TQaeCOoKj0cohTHs02UhjzCM7lh9uVD6c6VPVtnxvCApQ==
X-Received: by 2002:a05:6808:b0d:: with SMTP id s13mr91653oij.53.1636386261767; Mon, 08 Nov 2021 07:44:21 -0800 (PST)
Received: from mail-oi1-f180.google.com (mail-oi1-f180.google.com. [209.85.167.180]) by smtp.gmail.com with ESMTPSA id bl35sm5378372oib.26.2021.11.08.07.44.20 for <sedate@ietf.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Nov 2021 07:44:21 -0800 (PST)
Received: by mail-oi1-f180.google.com with SMTP id bf8so10236233oib.6 for <sedate@ietf.org>; Mon, 08 Nov 2021 07:44:20 -0800 (PST)
X-Received: by 2002:aca:3f42:: with SMTP id m63mr139786oia.2.1636386260430; Mon, 08 Nov 2021 07:44:20 -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>
In-Reply-To: <e52240b2-9969-c55d-f08e-c51f052c1cf5@igalia.com>
From: Shane Carr <shane@unicode.org>
Date: Mon, 08 Nov 2021 07:44:09 -0800
X-Gmail-Original-Message-ID: <CABxsp=mgnMeRcr5asJrzvwtiwiG5A0qz-KKnjrFVnuBDiR=ZyA@mail.gmail.com>
Message-ID: <CABxsp=mgnMeRcr5asJrzvwtiwiG5A0qz-KKnjrFVnuBDiR=ZyA@mail.gmail.com>
To: Ujjwal Sharma <ryzokuken@igalia.com>
Cc: sedate@ietf.org
Content-Type: multipart/alternative; boundary="000000000000c52d8805d048dda3"
X-GW-Delivered-Check: YESYES
Archived-At: <https://mailarchive.ietf.org/arch/msg/sedate/7vxyl40SKAN4Y0LH_j05Ta6o57Q>
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 15:44:34 -0000

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 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
>