Re: [calsify] Fwd: New Timestamp Draft

Shane Carr <sffc@google.com> Mon, 25 January 2021 08:02 UTC

Return-Path: <sffc@google.com>
X-Original-To: calsify@ietfa.amsl.com
Delivered-To: calsify@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EC1033A0C66 for <calsify@ietfa.amsl.com>; Mon, 25 Jan 2021 00:02:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -15.699
X-Spam-Level:
X-Spam-Status: No, score=-15.699 tagged_above=-999 required=5 tests=[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 d2kxRdfC4frm for <calsify@ietfa.amsl.com>; Mon, 25 Jan 2021 00:02:09 -0800 (PST)
Received: from mail-ot1-x331.google.com (mail-ot1-x331.google.com [IPv6:2607:f8b0:4864:20::331]) (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 AA9CB3A0B08 for <calsify@ietf.org>; Mon, 25 Jan 2021 00:02:09 -0800 (PST)
Received: by mail-ot1-x331.google.com with SMTP id v1so11933792ott.10 for <calsify@ietf.org>; Mon, 25 Jan 2021 00:02:09 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mJz42fD0aGBk9rrZ1YG9x9/if4SAbtWUXBeZSzJonao=; b=lQJiCG8n7FvXdx3Dmo9m9BgNlvsbRs33/E3/h4yvy0dxSAXp1Usoxhx61UZGdK2W5/ f/oEUmgfNnP99sYir/N5t235RbkPNNiV/QNrAJ9oh7+If03Jq/rzbP7HmackG8nQxIE6 7pGAaFNoaP8aR1St6BQF4QIrnGXEF/kUsNdCjN/JTorf1rdYNU0/mu8uNsVCXHccvgQT BFBrQO58vMI5V28ooeb92o3Ld56ks2J6ZzzktfRxFzU/u/zhrBKz/tMwmEBPOAOB2XxX 3n9TSkQS9vM2CyTJbvU96X16y2zBW+lQOnxK2O2GXsnJjQzF+3TmGIX3XK9XLU7Ik3O0 Sw/Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mJz42fD0aGBk9rrZ1YG9x9/if4SAbtWUXBeZSzJonao=; b=JMll512hg3jcwwEtS6D50qLtu7WkJTF/84m0U+dCXeFhTPtkZyJMi6QiEFxnmu8Ffh S//kADW5y/JWvbtWtDSLgdAgQU/dkRmnGsYs68eWEm2itGRZjl18N4uvT437+CXullpM 6vrx4vu50+WS8Y1MeM9VJRBP7kHcuW0qSBf031wEBfCtTxb5yQjdocxaiE5PGqRefxOy VSw4h2DT5nRfvCf5D9TKRaVkao5vGOaAYHD1tKbH76XKnjcpaTHQwtbnUdjrGYtBHk82 Lyp73/dQTPoK594UaEl2zObvBIwZWNdR8LBKIZpH7iQvawNpTEjbOaSOjfs4FVl2L1JD LyIQ==
X-Gm-Message-State: AOAM531UCKtp7SLvhgv2mxF4h5gG7i6Ib74TojmRU1AoYJK+VHOtwMAL XKHWpj0t9/9J65dfiKjlcf5O4tPJROeA8GEh/qBKRA==
X-Google-Smtp-Source: ABdhPJyslz9Z6znSdlgrmswomovEt0mfmQGdqipLDhu9oIKBs0yMfPqzSXogUsp7J6nSK14BDX0GAxSxrai6PDr8uVg=
X-Received: by 2002:a9d:7f88:: with SMTP id t8mr1069550otp.134.1611561728371; Mon, 25 Jan 2021 00:02:08 -0800 (PST)
MIME-Version: 1.0
References: <5927c3a3-9539-553d-598a-18d8bdadb244@igalia.com> <c9a1caed-829a-2339-21c1-5f0970110863@igalia.com> <01RUQ0ZW4L3U005PTU@mauve.mrochek.com> <d17b75e7-9720-6bd3-dd23-349e8ceac4a3@gmail.com> <01RUQ4K8M1RQ005PTU@mauve.mrochek.com> <34839106-de11-41fe-96d6-33f95c30524d@dogfood.fastmail.com> <01RUQJ104Y3C005PTU@mauve.mrochek.com> <01RUQVLVFX6K005PTU@mauve.mrochek.com> <8f821d46-6cbd-4a11-8098-1d9bb3ac28e7@beta.fastmail.com> <3288fdaf-28a9-45a9-bf50-c9de9e2c3486@dogfood.fastmail.com> <01RURPK5VO1U005PTU@mauve.mrochek.com>
In-Reply-To: <01RURPK5VO1U005PTU@mauve.mrochek.com>
From: Shane Carr <sffc@google.com>
Date: Mon, 25 Jan 2021 02:01:56 -0600
Message-ID: <CABxsp=mX3h9nfPX7y2m-zNqDqgF8G3Pm9n0XerdcdBOAnAk2Lg@mail.gmail.com>
To: Ned Freed <ned.freed@mrochek.com>
Cc: Neil Jenkins <neilj@fastmailteam.com>, calsify@ietf.org
Content-Type: multipart/alternative; boundary="0000000000005ab3c805b9b4f4d9"
Archived-At: <https://mailarchive.ietf.org/arch/msg/calsify/q-csS1gUoXa3sP1L9MbU13tqSkA>
Subject: Re: [calsify] Fwd: New Timestamp Draft
X-BeenThere: calsify@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <calsify.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/calsify>, <mailto:calsify-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/calsify/>
List-Post: <mailto:calsify@ietf.org>
List-Help: <mailto:calsify-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/calsify>, <mailto:calsify-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 25 Jan 2021 08:02:12 -0000

A few things:

- 3339 and 8601-1 are good as a timestamp format.  The extension Ujjwal
proposed generalizes those formats based on the demonstrated needs of the
ecosystem when dealing with "human dates" as opposed to "computer dates".
It's an interesting observation that timestamps (e.g. log files) are
typically used for contemporary events, so the extended 6-digit year format
may not really be necessary.  Therefore, I think it would be a reasonable
option to keep 3339 unmodified and alive as the timestamp format, and
consider the new proposal to be a peer.

- I see a thread with Eliot Lear, but I don't see where the pros and cons
of a combined RFC versus separate RFCs are discussed.  (But this is moot if
we were to decide to keep RFC 3339 alive in its current state.)

- The key question solved by this RFC is the data model.  What Ujjwal is
proposing is to use a timestamp paired with information about the time zone
and calendar system.  Once we agree on the data model (I do), then we can
talk about how to package the data.  Could we use JSON?  Sure, but we still
need to specify the structure of the JSON and what form the keys/values can
take.  Ujjwal is proposing a string syntax with bracketed annotations
because (a) it is already used in the wild, and (b) compared with JSON,
strings are more compact [no keys], more compatible [byte array rather than
struct/map], and easier to deal with [no need to format/stringify].  I hope
not to get into a debate on point (b), but if there are people here who
believe that we should stop defining new string syntaxes and instead let
JSON (ECMA-404) rule all, then we may need to engage on that topic.

Shane


On Sun, Jan 24, 2021 at 10:22 PM Ned Freed <ned.freed@mrochek.com> wrote:

> > I think the disagreement here stems from two viewpoints on what RFC3339
> is.
> > Ned is looking at it from the viewpoint that it defines a format for
> (log)
> > timestamps only.
>
> Not quite. I pointed out that RFC 3339 was and is used for timestamps in
> logs.
> I never said, or even implied, that it doesn't have (many) other uses,
> either
> by itself or in combination with other information.
>
> However, the more important point, as you note below, is that RFC 3339
> specifies a timestamp format. It's entirely self-contained, and aside from
> allowing specification of a time zone offset, it provides no information
> about
> presentation or anything else.
>
> > The other side is viewing it as simply a standard serialisation format
> for
> > dates in internet protocols without restriction on use case.
>
> That may be true but I question the relevance. There are a myriad of use
> cases
> for RFC 3339. There are also a myriad of use cases for RFC 3339 combined
> with
> other information. I don't think anyone is claiming otherwise.
>
> The issue here isn't that these other cases aren't worthy of consideration
> -
> they are - it's that addressing them by changing the core semantics of a
> widely
> used timestamp format isn't the right way to go about it.
>
> > Having looked at the document's introduction again, Ned is technically
> > correct:
>
> >    There are many ways in which date and time values might appear in
> >    Internet protocols:  this document focuses on just one common usage,
> >    viz. timestamps for Internet protocol events
>
> Exactly.
>
> > However, I would assert that in my experience, many view RFC3339 as just
> a
> > standardised serialisation format for all dates in contexts that go
> beyond
> > this.
>
> I don't know what this means. RFC 3339's semantics are clear, and the
> syntax
> only allows for the expression of those semantics. If you "go beyond" those
> semantics, you either have to extend the syntax, in which case you're not
> talking about RFC 3339 format any more, or you have to create some sort of
> grouping of RFC 3339 with additional information. In either case you have
> extended RFC 339, and that's not a matter of how you view it.
>
> > I think there is a clear demand for a serialisation format that *can*
> > incorporate a time zone or calendar identifier, and standardising this
> within
> > the IETF is more likely to lead to interoperability. I also agree that
> you
> > would never want to use such a time-zone variant in log files.
>
> OK... so it sounds to me like we're in agreement that RFC 3339's
> semantics need to be retained. Good.
>
> > So I think it comes down to two options:
>
> >  * A single RFC that replaces 3339 containing all the variants. The
> benefit
> >    is you have one place to reference for how to serialise a date-time.
>
> Eliot already explained why this is a really bad idea.
>
> >  * A new adjunct RFC for how to serialise date-times with IANA time
> zones, or
> >    without an absolute time at all (local "wall clock" date-times).
>
> A convention for this is already provided by RFC 3339, actually. Section
> 4.2.
>
> >    This
> >    would not overlap 3339, which would continue to define how to
> serialise
> >    UTC and fixed-offset date-times.
>
> This is a little confusing: Adjunct implies that you're extending RFC
> 3339, "no
> overlap" implies you're not. In any case, I would recommend building on the
> existing syntax of RFC 3339 if possible.
>
> > I am not too fussed which of these paths we go down.  I was originally
> > advocating for the first option, but looking at it again, I can see good
> > arguments for the second instead.
>
> Exactly.
>
>                                 Ned
>
> _______________________________________________
> calsify mailing list
> calsify@ietf.org
> https://www.ietf.org/mailman/listinfo/calsify
>