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

Shane Carr <sffc@google.com> Mon, 08 November 2021 15:42 UTC

Return-Path: <sffc@google.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 021F93A1048 for <sedate@ietfa.amsl.com>; Mon, 8 Nov 2021 07:42:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -17.599
X-Spam-Level:
X-Spam-Status: No, score=-17.599 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.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 5pOdMQfWG_6B for <sedate@ietfa.amsl.com>; Mon, 8 Nov 2021 07:42:06 -0800 (PST)
Received: from mail-oo1-xc2d.google.com (mail-oo1-xc2d.google.com [IPv6:2607:f8b0:4864:20::c2d]) (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 6D7CF3A1042 for <sedate@ietf.org>; Mon, 8 Nov 2021 07:42:06 -0800 (PST)
Received: by mail-oo1-xc2d.google.com with SMTP id m37-20020a4a9528000000b002b83955f771so5940921ooi.7 for <sedate@ietf.org>; Mon, 08 Nov 2021 07:42:06 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ffmeVuXbH1k4PUWMIaQGYRH9tIRGkw2bZHBZyASL2pk=; b=YY92aLwn7uBbgS3ho1FlGegrBHmcTetQqWOKErAqjsmfGjje5w7BBafIsi8wy0S9wn AYKleAdFq8EEK4CLo09pIh0iBDTO7QmzEA4pCQzem8qgvgn1h2kkWIT1dQU22Cd0i3WM Hilsvpx78Pr6h6MGj8gXs7DU+j+11qL93VLmGnUxnHcOzAgmY9F0nQY05p8CO6OYtKWT JzJqTLsjM3lvp5vrIKDHpJk98mPhVK+k+ecUGd2X1kM9MOyYS/IS7qqA4UdksP3nagxB 4q3jtzaeGJyJC/wvfrb5mjCv6d44slbIutP/hdf6sbOXLnRnkmJkNnL6tJDvYHF4ePsW npig==
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=ffmeVuXbH1k4PUWMIaQGYRH9tIRGkw2bZHBZyASL2pk=; b=xedcLLeZnw7n89xxtk2JUN/nR7lSODzWKA+wlBTB120dWy70BAk1e8slVRycmrwLwb 33cY0GnB4hW6bveFou3q9sKRDSzxYvXwXEc9bbhbbJlh1Yka3NOD/AMs4XICcyMEaXDO 5SE04J5IpSu1NVWVcnvel/Q0vkcNgYY1hpLQTp1hVGddszjTmRZdIMHqYZX8ln9S8xmh 91FXGCzDYPa21aKJ6QkxJaXXb5fEpQ8E8hf3U3ffQsq9y6Im6EOVpYH+bfopChoJ7NTE GSH/9M4pJhvdEwV0opGS99W1fDvx+e2bFK7Ii1U48p/08WWhirJNMIpTRnlkr2pAEbZL nxWQ==
X-Gm-Message-State: AOAM533ZVJrINvDSAICWruCfCuiefQtarTJNAFo4TyEvQo9oy452olSH C6N/dVK4e9y9hONsWakc2DqCRemoVHcqDxu4h4yUqK7xZf81mA==
X-Google-Smtp-Source: ABdhPJwPZ2TH6SCXWz+ItJ2sA9y/Y33lFbOvlBoQ01x/OgsIdWrGC2kVorE2gNKpG0C1cg5mPw5bsYiJ57ByfFe/Ja0=
X-Received: by 2002:a4a:d9c8:: with SMTP id l8mr85175oou.81.1636386123966; Mon, 08 Nov 2021 07:42:03 -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 <sffc@google.com>
Date: Mon, 08 Nov 2021 07:41:52 -0800
Message-ID: <CABxsp=kpva6fkE3fdZmJn9PVOk=Ru1NLgzaybWTwBAWn99rggA@mail.gmail.com>
To: Ujjwal Sharma <ryzokuken@igalia.com>
Cc: sedate@ietf.org
Content-Type: multipart/alternative; boundary="000000000000a3102905d048d5ab"
Archived-At: <https://mailarchive.ietf.org/arch/msg/sedate/20pQ8mPE_WjESfoHp4H2vQRSNsY>
X-Mailman-Approved-At: Mon, 08 Nov 2021 08:13:45 -0800
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:42:11 -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
<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
>