Re: A structured format for dates?
iain hill <iainardernhill@gmail.com> Thu, 25 August 2022 07:34 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 C5343C14CE20 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 25 Aug 2022 00:34:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.062
X-Spam-Level:
X-Spam-Status: No, score=-5.062 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, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=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 O3kyfq1DsBFY for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 25 Aug 2022 00:34: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 E2A24C14CE42 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 25 Aug 2022 00:34:51 -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 1oR7LA-00E1M6-IS for ietf-http-wg-dist@listhub.w3.org; Thu, 25 Aug 2022 07:31:48 +0000
Resent-Date: Thu, 25 Aug 2022 07:31:48 +0000
Resent-Message-Id: <E1oR7LA-00E1M6-IS@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 <iainardernhill@gmail.com>) id 1oR7L9-00E1L8-59 for ietf-http-wg@listhub.w3.org; Thu, 25 Aug 2022 07:31:47 +0000
Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by mimas.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from <iainardernhill@gmail.com>) id 1oR7L7-002j4w-Lg for ietf-http-wg@w3.org; Thu, 25 Aug 2022 07:31:46 +0000
Received: by mail-wr1-x429.google.com with SMTP id bq11so16880732wrb.12 for <ietf-http-wg@w3.org>; Thu, 25 Aug 2022 00:31:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=QVZQtIUCuOKMwUwemu102nZcVERskdDyHZLrIXgt2FM=; b=H9WtLgmbOYs7fHtgyThil5ZMHwmEY3+Bx234kqCaqyUKCouFax5eJziqaHC3wCEO9A C1a1dgOdseY3vy6L0seWu2bCzc2wu2ZHFtGZa1YGshFPAD4dNobMudkb7TVW1l5W+aoE hbEeSRxAG4F05xMKfNa6EME6anVK8uS/QKB4HgSuNYha1WHMenCfQkHyARKk6jJEZtqL vUm9TGqLt9go+AyfJvsV5+vCDDIxz2d3T4RDSo+t8m0WupUgLoFYhm269nnfa1GOOynb XC8VDXdEI/YB3N4g6jj/bcVgdR5yw69QD9Fy6NvxcRA+WDugnqIc9xC4+nKKKngHt9WJ hALg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=QVZQtIUCuOKMwUwemu102nZcVERskdDyHZLrIXgt2FM=; b=GKaajSRDRKwKgztr+e2jdFGmUOe9FJbqDHVBgP1R6gC9iDqKgyT6Q+stVZ2eUGC72Q +bg3WISgD/bF9ghX3NrHoMDHgTm2Sey1ZxW2bEZM2mLX+KwRmPdZ5oNsPtlA5sqX60tP gbunq++sb35QwsFFftJO5t3spCjKyz4eZK31bFHn7KdpSTxQIWdQtL38FowTseYX+jpN DeOntqyGlRrNc6t5Kz2MrSoxJTL+MZguAdxi63/s6s9lNSVO9xz88mtYdt3d2vGGJG0m 4/niFcSp0jwnesCPr75Bz3PejMnZx/i0dsXw1CzTu43VqUHy5PCb0N2USdk8lInujwxv vvNg==
X-Gm-Message-State: ACgBeo0XnUIUaq+uRLGyNvOBU/fngEcFI1iy+wNSiFc4/pr2Jd0odDTf 6LUohfcLR4+ccTrhhGMKofyHJvWkJg/uBQ==
X-Google-Smtp-Source: AA6agR7uLzngS4ZTLU4XCWO5VhWAaVwy3hHOg0QfGf4/toqtH/lStsPzjkbgi5kscmZwigcB//cx1Q==
X-Received: by 2002:adf:ef04:0:b0:225:7539:b16e with SMTP id e4-20020adfef04000000b002257539b16emr1338179wro.557.1661412694314; Thu, 25 Aug 2022 00:31:34 -0700 (PDT)
Received: from ?IPV6:2a01:cb1c:abc:de00:51e4:c3d8:d3d8:1d7e? ([2a01:cb1c:abc:de00:51e4:c3d8:d3d8:1d7e]) by smtp.gmail.com with ESMTPSA id c7-20020a05600c0ac700b003a5ee64cc98sm4511055wmr.33.2022.08.25.00.31.32 for <ietf-http-wg@w3.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Aug 2022 00:31:33 -0700 (PDT)
Message-ID: <535ee9c7-cb3a-0dad-f544-de97323f74db@gmail.com>
Date: Thu, 25 Aug 2022 09:31:32 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0
Content-Language: en-US
To: ietf-http-wg@w3.org
References: <202208231056.27NAuWFY015133@critter.freebsd.dk> <7B9BFDFF-337E-4CB8-8550-3D38EFD52160@apple.com> <685890F9-9F68-41EF-AC8C-86ACAD074A38@mnot.net> <3CBE12DF-8229-43E0-A9D9-EAB306B9EFF8@mit.edu>
From: iain hill <iainardernhill@gmail.com>
In-Reply-To: <3CBE12DF-8229-43E0-A9D9-EAB306B9EFF8@mit.edu>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=iainardernhill@gmail.com; helo=mail-wr1-x429.google.com
X-W3C-Hub-DKIM-Status: validation passed: (address=iainardernhill@gmail.com domain=gmail.com), signature is good
X-W3C-Hub-Spam-Status: No, score=-4.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, NICE_REPLY_A=-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_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1oR7L7-002j4w-Lg aa4807df5949755cf7bde7c71286a57b
X-Original-To: ietf-http-wg@w3.org
Subject: Re: A structured format for dates?
Archived-At: <https://www.w3.org/mid/535ee9c7-cb3a-0dad-f544-de97323f74db@gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/40353
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>
Hello all, Is using a floating point number based upon a chosen format of Julian Date (perhaps beginning at the start of UNIX time) really not worthy of more consideration here? This is what professional time keepers use, and is infinitely more appropriate for this kind of usage as the exact time is always recorded, geographical location information is discarded. I see now that the format is supposed to record the time of the event of the transfer and nothing else, this would insure that all nodes are using the same time at the very least, and that is the job of date in its essence. There are two different time types being discussed here, TAI and UTC, That these are getting mixed together apparently somewhat unwittingly; Might this be the factor at the heart of any discord? The JD, Julian Date system may be used with TAI, TT, TCB, or UTC. It is a perfect compromise between TAI which, for our intent and purpose, is what UNIX time is and UTC, which is what a time with a time zone is. JD is the standard used in astronomy and chronology, MJD or Modified Julian Date is another standard which is commonly used, which is the value of JD - 2400000.5 setting the number for more current dates and also setting the day change to be midnight and not midday, by way of a 0.5 day shift. Kind regards, Iain. On 24/08/2022 18:32, Justin Richer wrote: > +1 to Mark’s arguments, and this is why I’m also in favor of the textual serialization. > > It feels like the calls for using an integer serialization are an optimization of something that would be better suited to another format, like binary fields. > > For a similar strawman, things like lists and dictionaries could have had more compact serializations (no whitespace, length encoding, etc), but they are instead human-readable structures that are easy to visually parse. That’s what I’d want from a Date field type. > > I think the previous PR cut the right balance between having a very precise underlying data model (it’s an integer from epoch) and a human-readable form (a strict serialization and parsing rule set), and kept open the door to the compact optimization that’s being argued for in this thread. I would personally rather we go with that model as opposed to tightly tying together the data model and serialization like is being suggested. > > — Justin > >> On Aug 23, 2022, at 11:11 PM, Mark Nottingham <mnot@mnot.net> wrote: >> >> Personal response - >> >>> On 23 Aug 2022, at 11:27 pm, Tommy Pauly <tpauly@apple.com> wrote: >>> >>> 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. >> It's important to remember that if/when we have binary structured fields, the binary wire representation can be different from the textual one we're defining now -- for example, it could be the same as that of an integer, but with a different type flag. >> >> What we're defining now is merely what the _textual_ (HTTP/1.1-ish) representation of a date is. The underlying data model for dates is separable (see below), as is its mapping to other serialisations of structured types. >> >>> 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. >> That entirely relies upon the precision of the underlying data model and the rules for transforming it to/from the textual representation. In the previous PR, the underlying data model was an integer, and the rules were fairly precise, so I don't think this is a strong reason to go this way. >> >> This is why I'm not terribly convinced by the arguments for an integer textual representation so far; I think we can have the best of both worlds (integer data model / human-friendly textual representation) *if* we believe that binary structured fields are going to happen. IMO the only reason we'd choose an integer textual representation is if we didn't believe that. >> >> Cheers, >> >> -- >> 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