Re: A structured format for dates?

Brian Campbell <bcampbell@pingidentity.com> Tue, 23 August 2022 14:06 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2F5BAC152702 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 23 Aug 2022 07:06:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.758
X-Spam-Level:
X-Spam-Status: No, score=-7.758 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=pingidentity.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RGGIvLJQZfbV for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 23 Aug 2022 07:06:24 -0700 (PDT)
Received: from lyra.w3.org (lyra.w3.org [128.30.52.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6B574C14F724 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 23 Aug 2022 07:06:24 -0700 (PDT)
Received: from lists by lyra.w3.org with local (Exim 4.94.2) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1oQUXl-008K46-Pe for ietf-http-wg-dist@listhub.w3.org; Tue, 23 Aug 2022 14:06:13 +0000
Resent-Date: Tue, 23 Aug 2022 14:06:13 +0000
Resent-Message-Id: <E1oQUXl-008K46-Pe@lyra.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by lyra.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from <bcampbell@pingidentity.com>) id 1oQUXj-008K2a-Uh for ietf-http-wg@listhub.w3.org; Tue, 23 Aug 2022 14:06:11 +0000
Received: from mail-yw1-x1131.google.com ([2607:f8b0:4864:20::1131]) by mimas.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from <bcampbell@pingidentity.com>) id 1oQUXe-001fjG-EE for ietf-http-wg@w3.org; Tue, 23 Aug 2022 14:06:11 +0000
Received: by mail-yw1-x1131.google.com with SMTP id 00721157ae682-33387bf0c4aso381366817b3.11 for <ietf-http-wg@w3.org>; Tue, 23 Aug 2022 07:06:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pingidentity.com; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=pYDXi8nbfbE00/cSdWYd6T41TNgTgmPYaxClQbJK2Pk=; b=Nu5sAm9JiLSoImaspS5vyunH7Hcj8k0M0pO5VdegJqKeGpJE1lB1KAY17J1GDPULjh R2/jpq3HFlx2GuVr4LAZxf3urKcEDT+WG5kl2RF0uJ94nqjyCFIQtwhzFjX342aHodpM 0WouHa1JbAV3VPzSlNGc8V0eO6oysh9xQe1NlyfMmVd5FJH38YOzZGMwE47QOfJzO5t9 8v/zpi8df5Q9eX8bfLsNPAlMT3ElpOH+jpZGFwwakraSBU8QwUWfp5gdsCOxFV0LnbmK /g+Y+GBplvM0dqKJZjPpM07sOj6jQ73AvzyJpJ8nvJdePQ9i6ica5P8OaokhdKHnhBr2 i6hQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=pYDXi8nbfbE00/cSdWYd6T41TNgTgmPYaxClQbJK2Pk=; b=vRU8/zIdgQtbp7o0w2qO4UlJu0/SSEKT18Ks8/eqjHg3KoDhWLwokd/JQ7bqoj+p6p 1t5AakcgEn+FZ7eP5OoxNu36qko/0RymwTRJfyLSlRDFscUOeMOuOrtOoASUFIk8R8c4 uozN/VzppriKD/nZ0L4RSUxOB5RfbFQF+I3mKbKBOrYqOj1jjKdBfie09aWbzPl1hyr6 eJLTas0OeL/w7hwI2haL6qUgvxnS3B5Civ25+wZ6gCJkCbD72egRLICeHdpAjVQlpGE7 dEGA4vT1ax7Qa9N2sLVAIPg9p+eZg7x0iKpefU+oBR8XsmRT//zQy9oSh8WgZ0I9bGuq ikBw==
X-Gm-Message-State: ACgBeo34Z2cNueU/P4s8K/xVD9QO+t8EDGMcFyx4pIddDQLX9cePiy5t KOlaw95YCIHZhUGfFvdGLjTkUgkxw5GkwsizkyHsEcI/Q0RoixmxaTSaJzlhwhNkkmJIcokmU7V val8+IbMElLPkn7jvSdXo
X-Google-Smtp-Source: AA6agR6CKSxeMEJZch5ObdlXuR9/Z78bNLX+dwhjIe9BMNejClIiHbpEHMBr76WF8moLMHqZsv3oSMHk3hHSiDZfFH0=
X-Received: by 2002:a81:f57:0:b0:335:b7d6:b272 with SMTP id 84-20020a810f57000000b00335b7d6b272mr27301525ywp.136.1661263555229; Tue, 23 Aug 2022 07:05:55 -0700 (PDT)
MIME-Version: 1.0
References: <202208231056.27NAuWFY015133@critter.freebsd.dk> <7B9BFDFF-337E-4CB8-8550-3D38EFD52160@apple.com>
In-Reply-To: <7B9BFDFF-337E-4CB8-8550-3D38EFD52160@apple.com>
From: Brian Campbell <bcampbell@pingidentity.com>
Date: Tue, 23 Aug 2022 08:05:20 -0600
Message-ID: <CA+k3eCTQ8yaR+sTpkF+=rs0pLT5w5JCnSzi_OrgCsU7bjT_KuQ@mail.gmail.com>
To: Tommy Pauly <tpauly@apple.com>
Cc: Poul-Henning Kamp <phk@phk.freebsd.dk>, Roberto Polli <robipolli@gmail.com>, Mark Nottingham <mnot@mnot.net>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="00000000000016999805e6e91041"
Received-SPF: pass client-ip=2607:f8b0:4864:20::1131; envelope-from=bcampbell@pingidentity.com; helo=mail-yw1-x1131.google.com
X-W3C-Hub-DKIM-Status: validation passed: (address=bcampbell@pingidentity.com domain=pingidentity.com), signature is good
X-W3C-Hub-Spam-Status: No, score=-5.1
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, W3C_AA=-1, W3C_DB=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1oQUXe-001fjG-EE 8a03f234f06a8b7a2ccc3ac80197eff2
X-Original-To: ietf-http-wg@w3.org
Subject: Re: A structured format for dates?
Archived-At: <https://www.w3.org/mid/CA+k3eCTQ8yaR+sTpkF+=rs0pLT5w5JCnSzi_OrgCsU7bjT_KuQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/40343
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <https://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

+1 to Tommy "no hats" Pauly's rational

On Tue, Aug 23, 2022 at 7:30 AM Tommy Pauly <tpauly@apple.com> wrote:

>
>
> > On Aug 23, 2022, at 4:00 AM, Poul-Henning Kamp <phk@phk.freebsd.dk>
> wrote:
> >
> > --------
> > Roberto Polli writes:
> >> Hi Poul-Henning,
> >>
> >> Il giorno mar 23 ago 2022 alle ore 10:19 Poul-Henning Kamp
> >> <phk@phk.freebsd.dk> ha scritto:
> >>>> Just tried to get some more feedback on twitter on the topic
> >>>> https://twitter.com/ioggstream/status/1561752931417952258
> >>>> feel free to RT.
> >>
> >>> Making timestamps human readable is pointless, because, statistically
> >>> speaking, no humans ever read these headers in the raw.
> >> While statistically speaking humans do not read headers nor contents,
> >> not having a human readable format for dates will just lead people that
> >> cares for readability to:
> >>
> >> - either continue using HTTP-date;
> >> - or using a generic ISO8601 string, e.g. "2020-02-02T10:10:10+01:00".
> >
> > And they are welcome to do that, so what's the problem ?
> >
> > Again: Not even one out of a billion HTTP headers is ever read by a
> human,
> > so insisting on human readability makes no sense.
> >
> > For that one out of a billion, there is absolutely nothing preventing
> tools,
> > for instance the browsers "developer tools" from nice-printing the field
> > as human-readable.
> >
> >>> The necessary handling of leap-second is complex and a layer-violation.
> >>
> >> Syslog does not use them
> >> https://www.rfc-editor.org/rfc/rfc5424.html#section-6.2.3
> >
> > A: What does that have to do with anything ?
> >
> > B: That is a really bad (13 year old!) choice, in a world where people
> have
> >   started to apply leap-smearing and other platform-level mitigations of
> >   leap-seconds.
> >
> > Both HTTP and Syslog should transmit whatever time the platform provides,
> > respecting whatever leap-second handling that platfrom has decided to
> apply.
> >
> >>> And finally: it is much more expensive in terms of CPU power.
> >>
> >> This makes the more computationally intensive HTTP-date
> >> the only human readable option.
> >
> > I literally dont know what that means ?
> >
> > If only one out of a billion HTTP date headers are ever read by a
> > human, and that is probably way overestimated, then clearly the
> > extra processing cost of humanizing the field value should be
> > borne only by those requests ?
> >
> >> In general, I am not sure whether CPU power issues should be addressed
> at
> >> a different level than field content (e.g. at messaging level) since it
> is
> >> not possible to predict the spillovers of those micro-optimizations:
> >> honestly I have no data on that. This is an interesting topic that
> >> needs further (and proper) investigation though.
> >
> > Well /I/ have experience with that, quite a lot in fact, and I'm
> > telling you that converting to and from "human" timestamp format
> > is a massive waste of computing power.
> >
> > ...in particular when we are talking about a globally load-bearing
> protocol like HTTP.
>
> The numeric type is not only simpler to process for a computer, but also
> should be generally smaller on the wire, particularly if we have binary
> structured fields one day. The scale of that alone can have a great impact.
>
> I imagine it’s also a lot easier to translate *to* the human readable /
> localized format for a date from the number, since the number is an
> unambiguous form. Parsing dates the other way (from human readable to
> machine readable) is where much of the complexity and ambiguity arises, so
> a scheme that only requires transformations in one direction seems
> preferable.
>
> Tommy (no hats)
>
> >
> > Poul-Henning
> >
> >
> > --
> > Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
> > phk@FreeBSD.ORG         | TCP/IP since RFC 956
> > FreeBSD committer       | BSD since 4.3-tahoe
> > Never attribute to malice what can adequately be explained by
> incompetence.
> >
>
>

-- 
_CONFIDENTIALITY NOTICE: This email may contain confidential and privileged 
material for the sole use of the intended recipient(s). Any review, use, 
distribution or disclosure by others is strictly prohibited.  If you have 
received this communication in error, please notify the sender immediately 
by e-mail and delete the message and any file attachments from your 
computer. Thank you._