Re: A structured format for dates?

Roberto Polli <robipolli@gmail.com> Tue, 23 August 2022 09:37 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 E261BC1526E3 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 23 Aug 2022 02:37:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.759
X-Spam-Level:
X-Spam-Status: No, score=-7.759 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, 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=gmail.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 96R7V382L4AM for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 23 Aug 2022 02:37:33 -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 8D115C1524B3 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 23 Aug 2022 02:37:33 -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 1oQQJ5-007aDO-Gx for ietf-http-wg-dist@listhub.w3.org; Tue, 23 Aug 2022 09:34:47 +0000
Resent-Date: Tue, 23 Aug 2022 09:34:47 +0000
Resent-Message-Id: <E1oQQJ5-007aDO-Gx@lyra.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by lyra.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from <robipolli@gmail.com>) id 1oQQJ3-007aCO-Kc for ietf-http-wg@listhub.w3.org; Tue, 23 Aug 2022 09:34:45 +0000
Received: from mail-il1-x132.google.com ([2607:f8b0:4864:20::132]) by titan.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from <robipolli@gmail.com>) id 1oQQJ2-003ONi-8L for ietf-http-wg@w3.org; Tue, 23 Aug 2022 09:34:45 +0000
Received: by mail-il1-x132.google.com with SMTP id q16so7121252ile.1 for <ietf-http-wg@w3.org>; Tue, 23 Aug 2022 02:34:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=3S1LM08GykUK4roZ08r9Wj3P8PW3xtwQ3t8bjYS64Zc=; b=fCfgGl+8duUoORsf5E8+Gi8M90pSE1ekjpER3vhZ0kceKjp7LPSAvKNirUg3GOP/D0 GEq5CwCJb3zNE/i1sWRkKQeJO1FMXwdJ0oJC8gq8ecAML+/F/EBKbhSI3RrH5KFwzzY4 Dth6yhZmSRkstqjddcEagteyWBMfJ+Q4oVc1vJe7WJevYW4lkNNK3VA4b48TtZlLrnTc ABA/IqWMRlWgTn1nEitp1wXpUa5qYynS/BCcenWfTQ94Q0490yFsduESg+6zbNOY0d3T RpLOxzTyfgOD3iRV6q6MxuIwezvM9BxGFpam4u8LEMarW9yadHF5K+vcU7ZYfLNkEXD2 4z3A==
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=3S1LM08GykUK4roZ08r9Wj3P8PW3xtwQ3t8bjYS64Zc=; b=22E2HFDw9tYMTbkOj/PE9P1SABjKzPzM7Gf85akDVnIVw5ps+ztupJ1tlSgpUkxbiI iti1I1dvvjNJUejNTh10R/CHx/b8eZrxyeRjJawIQ6G2unEVyp6XHOjdjrae2j72Eyp2 kZGX0vaEDeddxwJRk/aGXXOxE/c89KnkclFiRHeE4IH3NfdntELqoBcgud2ZOzjJiFFj 4gnYHQT8DcCccZQbjLk5sN2gR/3Mup/IxoZvYS5scOaC7ZT10DyKVTfdRaUe67S06Dja mERI1hD/Lm/LJMpg1SxYnqGZxovwPUK8x8XaCd1fzdJuoiriJlRNTbe61EGI35szOyFT nkLg==
X-Gm-Message-State: ACgBeo1BR2zEOYtcHuYUzpkE5kDf9fsmVG1H8cvUi35Blzqw8wQVCnCU pG3gszjhPc9QoPO0fu62ALFbS/eZ0o8h8qrzx5vgDFMY9CU=
X-Google-Smtp-Source: AA6agR5OWp6FLq9Njnm2rBzA8Kr87wiugG2UPVh8LE2Z4T3XOuDOjVqMOmtHvZ6J/7j/WddqvKY3V3I4+TsG5k626Bg=
X-Received: by 2002:a05:6e02:1a0b:b0:2df:5c44:9796 with SMTP id s11-20020a056e021a0b00b002df5c449796mr12181082ild.145.1661247273134; Tue, 23 Aug 2022 02:34:33 -0700 (PDT)
MIME-Version: 1.0
References: <8C9C4A5C-45DB-43C0-9769-2A7510854AB1@mnot.net> <5CE5343D-EECB-4F25-A3DB-F300E7708656@mnot.net> <A94FB409-7D37-4B5E-894C-33E8CC4986D4@mnot.net> <502151A9-050A-4A46-AA1E-FC54751EBDC1@mnot.net> <CAP9qbHUFuUZKxX3uyFU1D5uUbV-UbVWum=EPxrvmd3Viyk1kVQ@mail.gmail.com> <202208230819.27N8Jk08053445@critter.freebsd.dk>
In-Reply-To: <202208230819.27N8Jk08053445@critter.freebsd.dk>
From: Roberto Polli <robipolli@gmail.com>
Date: Tue, 23 Aug 2022 11:34:22 +0200
Message-ID: <CAP9qbHUHf-FKVK09PXKO3RkzCU7pApZUKb1N5N1L0wNbWCqNeg@mail.gmail.com>
To: Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc: Mark Nottingham <mnot@mnot.net>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=2607:f8b0:4864:20::132; envelope-from=robipolli@gmail.com; helo=mail-il1-x132.google.com
X-W3C-Hub-DKIM-Status: validation passed: (address=robipolli@gmail.com domain=gmail.com), signature is good
X-W3C-Hub-Spam-Status: No, score=-6.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, FREEMAIL_FROM=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_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1oQQJ2-003ONi-8L 618fb5a09a6d3bc6e5c142a7c12b8579
X-Original-To: ietf-http-wg@w3.org
Subject: Re: A structured format for dates?
Archived-At: <https://www.w3.org/mid/CAP9qbHUHf-FKVK09PXKO3RkzCU7pApZUKb1N5N1L0wNbWCqNeg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/40339
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>

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

> 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

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

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.

Thanks for your time and have a nice day,
R.