Re: A structured format for dates?
Mark Nottingham <mnot@mnot.net> Thu, 16 June 2022 07:42 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 2DBA1C15AE2E for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 16 Jun 2022 00:42:57 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.761
X-Spam-Level:
X-Spam-Status: No, score=-2.761 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_MSPIKE_H2=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=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=BPonk02x; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=AUjrK5lq
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 EGoDF7dlzDkm for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 16 Jun 2022 00:42:52 -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 36E31C15AE2C for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 16 Jun 2022 00:42:51 -0700 (PDT)
Received: from lists by lyra.w3.org with local (Exim 4.92) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1o1k9M-0007kM-Qa for ietf-http-wg-dist@listhub.w3.org; Thu, 16 Jun 2022 07:42:44 +0000
Resent-Date: Thu, 16 Jun 2022 07:42:44 +0000
Resent-Message-Id: <E1o1k9M-0007kM-Qa@lyra.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by lyra.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <mnot@mnot.net>) id 1o1k9L-0007j2-19 for ietf-http-wg@listhub.w3.org; Thu, 16 Jun 2022 07:42:43 +0000
Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by titan.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <mnot@mnot.net>) id 1o1k9J-0002Nu-Dj for ietf-http-wg@w3.org; Thu, 16 Jun 2022 07:42:42 +0000
Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id D18E25C044A; Thu, 16 Jun 2022 03:42:29 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 16 Jun 2022 03:42:29 -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=1655365349; x= 1655451749; bh=z6/sjJGkNwKzhQbxLRt3fIO6Y6jbw3PjJxsCeebdHXE=; b=B Ponk02x1/AdFNt+dUTNLRRh3S1WkY9FI668ndaTvGQHU5ikhvrHXzVaEdvTjXo5T YuWBaX7RCjiC2bHODIhwuJGDYZRABviQZq1j5IEgNAvQ3t6rkiO6ZGyX3WIDfaP1 s3/HQB6h1CNOH+W4iqZh6o1NvSngjFeQ9Vyv8fN/pSr1Vm8FdWrZZjnyQprgF90t /AxXlafCpIQqbPtvbPGndSYThE5yKztpFtPylqwBZkJqhmbynffaBOyalRRhkNNt RWuKls3NPTIQsM1KLMSCvfiN9P6PRAjB4x8PamR8uoERu6Vjgl49IZmmiJngkApF ClyExDXmAYccC7vyxguGQ==
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=1655365349; x= 1655451749; bh=z6/sjJGkNwKzhQbxLRt3fIO6Y6jbw3PjJxsCeebdHXE=; b=A UjrK5lqbMkotuKWLcB5L+sJRfdPUqPlsAnXePRi6fbflAsi6MUlWA+BAFlQ5ntry ODciuZM+GRcB2wtb7b10bSPRw4/VtacrO0Cq4J8W1bUq7e2xPlcialw/NXQALokZ 8gI3HRm3I3hHU9LUX21aXjW0q1//5Pr4xpmvw/nbjysbRAkEZYcdMd72d5Anm6qf VTq4B/953JYCsm46QRapgNtqngKgeVfn4/HEIu6ostEdVJFHW1aa2XGNDKrOIi+q fNYTDNpxRCcv+VRVlAI5iuao6xJkLBjRw+eY3gOKoTZ58d2ZkGUaUe4J80AcTgLD TyxXoVyRo0b1AiMYIsEtw==
X-ME-Sender: <xms:5d6qYpmWpy6IlAUpNqVhXKNRYLAInGQeMm0F-0sVgCIXjY3xvVRG-A> <xme:5d6qYk2xqjnqfjygc0Yul5cm5Eu2o2_WaH6ex_npRl7LoDSc4fyPYEPzGAbSW7yBj jz49UVxKulS3tkEuA>
X-ME-Received: <xmr:5d6qYvoDVRmBYUCR-B3PS30M1S0JX9QfoUXA4bk3vBgdyu0Dmx7ut8Dlqcg8Su-d5nQ2CxXZC1cFDx-Ed8po9fPWRI1Hd2OxA57q8IVvNSiyCrFkGcFkFPCi>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedruddvvddguddvtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpegtggfuhfgjffevgffkfhfvofesthhqmhdthhdtvdenucfhrhhomhepofgr rhhkucfpohhtthhinhhghhgrmhcuoehmnhhothesmhhnohhtrdhnvghtqeenucggtffrrg htthgvrhhnpedvfeehvdeigeejteeihffftdfgiefhvedtveduteffheduhfefleehiedu ffekkeenucffohhmrghinhepghhithhhuhgsrdgtohhmpdhmnhhothdrnhgvthenucevlh hushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmnhhothesmhhn ohhtrdhnvght
X-ME-Proxy: <xmx:5d6qYpm5IOalxxeQoLOl59rv-Mxc-q5yGLqGPHGzF91w-WPeCIygHQ> <xmx:5d6qYn1A_mVCknnA4BXRyur3tB2OlY4gKoGBOyjhVBslN2tY7E4Fiw> <xmx:5d6qYotfVDUyjiYD8M5BM117cuay37JujxADvCxGO1CCJ9zxSdvNOg> <xmx:5d6qYg__8fL1l4l7cFkoPDV1lHLo5BDzsMzzMEhC6Lb7tlKq5oWymg>
Feedback-ID: ie6694242:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 16 Jun 2022 03:42:28 -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: <65e9f4d0-9203-4b5b-913b-4cf801f82d61@beta.fastmail.com>
Date: Thu, 16 Jun 2022 17:42:24 +1000
Cc: ietf-http-wg@w3.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <7618B2AD-AB0A-47A8-B37C-154690332214@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>
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: titan.w3.org 1o1k9J-0002Nu-Dj 831a6488faf3d2c4c7b5af476839181c
X-Original-To: ietf-http-wg@w3.org
Subject: Re: A structured format for dates?
Archived-At: <https://www.w3.org/mid/7618B2AD-AB0A-47A8-B37C-154690332214@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/40119
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>
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/
- A structured format for dates? Mark Nottingham
- Re: A structured format for dates? Glenn Strauss
- Re: A structured format for dates? Mark Nottingham
- Re: A structured format for dates? Poul-Henning Kamp
- Re: A structured format for dates? Mark Nottingham
- Re: A structured format for dates? Willy Tarreau
- Re: A structured format for dates? (future leap-s… Poul-Henning Kamp
- Re: A structured format for dates? Martin Thomson
- Re: A structured format for dates? Mark Nottingham
- Re: A structured format for dates? Martin Thomson
- Re: A structured format for dates? Mark Nottingham
- Re: A structured format for dates? Julian Reschke
- Re: A structured format for dates? Toerless Eckert
- Re: A structured format for dates? Amos Jeffries
- Re: A structured format for dates? Austin William Wright
- Re: A structured format for dates? Poul-Henning Kamp
- Re: A structured format for dates? Austin William Wright
- Re: A structured format for dates? Poul-Henning Kamp
- Re: A structured format for dates? Mark Nottingham
- Re: A structured format for dates? Poul-Henning Kamp
- Re: A structured format for dates? Mark Nottingham
- Re: A structured format for dates? Poul-Henning Kamp
- Re: A structured format for dates? Willy Tarreau
- Re: A structured format for dates? Mark Nottingham
- Re: A structured format for dates? Poul-Henning Kamp
- Re: A structured format for dates? Mark Nottingham
- Re: A structured format for dates? Mark Nottingham
- Re: A structured format for dates? Roberto Polli
- Re: A structured format for dates? Poul-Henning Kamp
- Re: A structured format for dates? Roberto Polli
- Re: A structured format for dates? Poul-Henning Kamp
- Re: A structured format for dates? Tommy Pauly
- Re: A structured format for dates? Willy Tarreau
- Re: A structured format for dates? Brian Campbell
- Re: A structured format for dates? Mark Nottingham
- Re: A structured format for dates? Tommy Pauly
- Re: A structured format for dates? Julian Reschke
- Re: A structured format for dates? Ian Swett
- Re: A structured format for dates? Poul-Henning Kamp
- Re: A structured format for dates? Ryan Hamilton
- Re: A structured format for dates? David Benjamin
- Re: A structured format for dates? Justin Richer
- Re: A structured format for dates? iain hill
- Re: A structured format for dates? Poul-Henning Kamp
- Fwd: A structured format for dates? iain hill
- Re: A structured format for dates? Mark Nottingham
- Re: A structured format for dates? David Benjamin
- Re: A structured format for dates? Mark Nottingham
- Re: A structured format for dates? Tommy Pauly
- Re: A structured format for dates? Roberto Polli
- Re: A structured format for dates? Erik Wilde
- Re: A structured format for dates? Roberto Polli