Re: A structured format for dates?

Mark Nottingham <mnot@mnot.net> Thu, 16 June 2022 07:47 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 57497C15AE2D for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 16 Jun 2022 00:47:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.757
X-Spam-Level:
X-Spam-Status: No, score=-2.757 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.25, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_BLOCKED=0.001, 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=mnot.net header.b=a0Ycca7x; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=hoaX2mQV
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 K8I0FBkmjZo8 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 16 Jun 2022 00:47:10 -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 5A2B5C15AAFF for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 16 Jun 2022 00:46:57 -0700 (PDT)
Received: from lists by lyra.w3.org with local (Exim 4.92) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1o1kDI-0000Ld-94 for ietf-http-wg-dist@listhub.w3.org; Thu, 16 Jun 2022 07:46:48 +0000
Resent-Date: Thu, 16 Jun 2022 07:46:48 +0000
Resent-Message-Id: <E1o1kDI-0000Ld-94@lyra.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by lyra.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <mnot@mnot.net>) id 1o1kDH-0000Ki-EK for ietf-http-wg@listhub.w3.org; Thu, 16 Jun 2022 07:46:47 +0000
Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by mimas.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <mnot@mnot.net>) id 1o1kDF-0002SB-Va for ietf-http-wg@w3.org; Thu, 16 Jun 2022 07:46:47 +0000
Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 764445C07FE; Thu, 16 Jun 2022 03:46:35 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 16 Jun 2022 03:46:35 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mnot.net; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1655365595; x= 1655451995; bh=zUhKxOyGf5yaLsl5QxmEvO+zwKLZCav4X8evajvvCM0=; b=a 0Ycca7xPsqRAKiluYhItInmJnJtKAX2tvZXOXa3XTAfMe6ZhNxDJcb+66MfM1pY2 maba+Oxaim7tQt9pbfaxLsAKIaSaljuTt/dkPsKRFnNWDmkfi78NGbIhvA9ZS5gb 2e6sXFUOlE+vx+ssWqXNPvgRD3zTo1wnnrPEgi6yvkgShwKUjVJJA42aB5R8SxYE 8k8pzW9qqVWg4m2GzHQWy0WMl4KIBQzW8T0TXHSTBrfrD33CMRBs9bjlW+zg2jEd UDchVAB5oKJG+QithzfFXRLnLXKs7frmTXjJ3RJR3fmL1RojgMvnlcD5ejtonO2E Y2gscbE6IpsxJikcmjOkQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1655365595; x= 1655451995; bh=zUhKxOyGf5yaLsl5QxmEvO+zwKLZCav4X8evajvvCM0=; b=h oaX2mQVoeUFj6ZNAYMFhy68eIa9NGwXwqHcu1a9S7VtfhqLzSvmnItWMCt0FsEI+ iz3bzuf+kdxSeKZwaXvXrof1FvyHU8lbZHHJ9pYeqPd57OBvTOwkhji1qOuqzzFO 1S4qK5OtjxbL8rv/Nu6bgaCUmrvPfFkOxPTMblyn+FL5W7haJepR89xfT4SuUlXo efai1b4b2nN4vxnCCP5oXdzGKCGHoTfokvhoJoURWffdfiBTReiIhY4KJX61rWjF F6QqUJYVdOuCfVNecFvXtIqFLFHnQEGuHllduA+p77QYslzsnpPPRqoZZ9KsZsWT YJn5RSpFZCbBGtCZ1eRzg==
X-ME-Sender: <xms:29-qYqXlw-Va2EhMVnygePegFSH8yGYoQ8-R2ZKdYi7rpkVepa88ZQ> <xme:29-qYmkhzeYQr6kmx0dk1M0gXdmjEEDbK0wWCisLC0w3IBlUo2m1AbP46eB4U2qSr pY0sVohO9zHjajmOg>
X-ME-Received: <xmr:29-qYubnh2NRc06N0qy1e9iR-o75vo0OSzKMgFbZYTUj9SxJnc5vy5i4X-XfsmJuToolaVWWyP0eKk_0fAxlSBxOPF3zbq6l9qqp89kqF2XEWn72PTGPWkAO>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedruddvvddguddvvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpegtggfuhfgjffevgffkfhfvofesthhqmhdthhdtvdenucfhrhhomhepofgr rhhkucfpohhtthhinhhghhgrmhcuoehmnhhothesmhhnohhtrdhnvghtqeenucggtffrrg htthgvrhhnpedvfeehvdeigeejteeihffftdfgiefhvedtveduteffheduhfefleehiedu ffekkeenucffohhmrghinhepghhithhhuhgsrdgtohhmpdhmnhhothdrnhgvthenucevlh hushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmnhhothesmhhn ohhtrdhnvght
X-ME-Proxy: <xmx:29-qYhXNIfyYYPjhuRcgDKf1OoCk6KYo_F0QxWbuASJZDr3dzRyUcw> <xmx:29-qYkn0RDqgzXUiXoyFv788n-4YHC59H4xbCLHV3beEwynrRLN4og> <xmx:29-qYmc1CMXUiM6cGIDU0os_rmafg6JF0h90LAGRyicEeaXQhEnkYw> <xmx:29-qYguGG0nCEBxiGxBHou5wqDaUmET-pyYytRVxaX-1USUxqiCmpw>
Feedback-ID: ie6694242:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 16 Jun 2022 03:46:34 -0400 (EDT)
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <b126f932-2e6f-446d-9621-09c76357316a@beta.fastmail.com>
Date: Thu, 16 Jun 2022 17:46:33 +1000
Cc: ietf-http-wg@w3.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <5AAAA387-3A8E-41F5-9264-C0198C9CFDC8@mnot.net>
References: <8C9C4A5C-45DB-43C0-9769-2A7510854AB1@mnot.net> <202206160546.25G5k0KR056033@critter.freebsd.dk> <B34DEE15-DE14-4DC2-B6D0-F0CD1823EC30@mnot.net> <65e9f4d0-9203-4b5b-913b-4cf801f82d61@beta.fastmail.com> <7618B2AD-AB0A-47A8-B37C-154690332214@mnot.net> <b126f932-2e6f-446d-9621-09c76357316a@beta.fastmail.com>
To: Martin Thomson <mt@lowentropy.net>
X-Mailer: Apple Mail (2.3696.100.31)
Received-SPF: pass client-ip=66.111.4.27; envelope-from=mnot@mnot.net; helo=out3-smtp.messagingengine.com
X-W3C-Hub-DKIM-Status: validation passed: (address=mnot@mnot.net domain=mnot.net), signature is good
X-W3C-Hub-DKIM-Status: validation passed: (address=mnot@mnot.net domain=messagingengine.com), signature is good
X-W3C-Hub-Spam-Status: No, score=-9.8
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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1o1kDF-0002SB-Va 7fa257f543f0e8587c7e9166860c53ad
X-Original-To: ietf-http-wg@w3.org
Subject: Re: A structured format for dates?
Archived-At: <https://www.w3.org/mid/5AAAA387-3A8E-41F5-9264-C0198C9CFDC8@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/40121
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>

They want it to be the same as (or very similar to) the already-existing-and-related Sunset header.

*shrug*


> On 16 Jun 2022, at 5:45 pm, Martin Thomson <mt@lowentropy.net> wrote:
> 
> It really seems like, given that we are debating this now, that Deprecation can use SF-Date in whatever form we decide.  I know that folks in HTTPAPI leaned more toward not doing that, but we should - as an institution - have a low tolerance for that sort of divergence.
> 
> On Thu, Jun 16, 2022, at 17:42, Mark Nottingham wrote:
>> Indeed; I could see e.g., browser dev tools automatically presenting a 
>> header that it knows is a date  in a friendly way. The only potential 
>> issue comes up when it's not recognised as such.
>> 
>> If we decide not to do this, I'm absolutely fine with it; it just means 
>> that it's likely things like Deprecation will continue to use a String 
>> for dates, whereas Retrofit will use e.g., Integer.
>> 
>> Cheers,
>> 
>> 
>>> On 16 Jun 2022, at 5:34 pm, Martin Thomson <mt@lowentropy.net> wrote:
>>> 
>>> The resistance is probably the result of wanting to be able to read the header as it appears in logs.  I still find this to be challenging with seconds-since-epoch.
>>> 
>>> That said, I no longer believe that readable is a requirement for wire formats.  Tools can do a lot to cover any shortcomings.
>>> 
>>> On Thu, Jun 16, 2022, at 16:04, Mark Nottingham wrote:
>>>> Personally, I tend to agree with PHK - I think that Integer (or 
>>>> Decimal) is adquate and appropriate.
>>>> 
>>>> However, some people seem to keep on pushing back on this - I think 
>>>> especially for application-focused headers it's more visible. If we're 
>>>> going to do something, retrofit is a good opportunity for it, since 
>>>> we're defining SF-Date and friends.
>>>> 
>>>> Cheers,
>>>> 
>>>> 
>>>>> On 16 Jun 2022, at 3:46 pm, Poul-Henning Kamp <phk@phk.freebsd.dk> wrote:
>>>>> 
>>>>> --------
>>>>> Mark Nottingham writes:
>>>>> 
>>>>>> I'd love to hear what people think about this issue:
>>>>>> https://github.com/httpwg/http-extensions/issues/2162
>>>>> 
>>>>> I've added this comment:
>>>>> 
>>>>> 	I see no mention of fractional seconds ?
>>>>> 
>>>>> 	I think we need to ponder that, if the goal is (eventual) convergence for all timestamps in HTTP ?
>>>>> 
>>>>> 	Considering how much effort we spend on speeding up HTTP, I find the "human readable" argument utterly bogus.
>>>>> 
>>>>> 	Only a very tiny fraction of these timestamps are ever read by humans, and most are in a context where software trivially can render the number in 8601 format if so desired.
>>>>> 
>>>>> 	In terms of efficiency, I will concede that, in a HTTP context, it is almost always possible to perform the necessary calculations and comparisons on raw ISO-8601 timestamps, without resorting to the full calendrical conversions, but once all the necessary paranoia is included, I doubt it is an optimization.
>>>>> 
>>>>> 	My preference is sf-decimal seconds since epoch, (and this is largely why sf-decimal has three decimals in the first place), because it gives us fast processing, good compression and millisecond resolution.
>>>>> 
>>>>> 	PS: A Twitter poll with only 40 respondents, carried out on the first monday after new-years ? Really ?!
>>>>> 
>>>>> 
>>>>> -- 
>>>>> 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.
>>>>> 
>>>> 
>>>> --
>>>> Mark Nottingham   https://www.mnot.net/
>>> 
>> 
>> --
>> Mark Nottingham   https://www.mnot.net/

--
Mark Nottingham   https://www.mnot.net/