Re: A structured format for dates?

Erik Wilde <erik.wilde@dret.net> Sun, 11 September 2022 19:33 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 B82E9C1524C5 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 11 Sep 2022 12:33:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.662
X-Spam-Level:
X-Spam-Status: No, score=-2.662 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, NICE_REPLY_A=-0.001, 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] autolearn=ham autolearn_force=no
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 S5SZMfLIudUd for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 11 Sep 2022 12:33:31 -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 AFDECC1524C4 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 11 Sep 2022 12:33:30 -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 1oXSf8-00EmKS-VA for ietf-http-wg-dist@listhub.w3.org; Sun, 11 Sep 2022 19:30:38 +0000
Resent-Date: Sun, 11 Sep 2022 19:30:38 +0000
Resent-Message-Id: <E1oXSf8-00EmKS-VA@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 <erik.wilde@dret.net>) id 1oXSf6-00EmJT-Li for ietf-http-wg@listhub.w3.org; Sun, 11 Sep 2022 19:30:36 +0000
Received: from mxout017.mail.hostpoint.ch ([2a00:d70:0:e::317]) by titan.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from <erik.wilde@dret.net>) id 1oXSf4-00EcKb-V5 for ietf-http-wg@w3.org; Sun, 11 Sep 2022 19:30:36 +0000
Received: from [10.0.2.46] (helo=asmtp013.mail.hostpoint.ch) by mxout017.mail.hostpoint.ch with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.95 (FreeBSD)) (envelope-from <erik.wilde@dret.net>) id 1oXSel-00099i-Kv; Sun, 11 Sep 2022 21:30:15 +0200
Received: from [12.27.68.35] (helo=[172.16.253.84]) by asmtp013.mail.hostpoint.ch with esmtpa (Exim 4.95 (FreeBSD)) (envelope-from <erik.wilde@dret.net>) id 1oXSel-000MA4-5Z; Sun, 11 Sep 2022 21:30:15 +0200
X-Authenticated-Sender-Id: erik.wilde@dret.net
Message-ID: <1a61e628-0707-820d-a3e5-776992de2f5b@dret.net>
Date: Sun, 11 Sep 2022 12:30:11 -0700
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.2.1
Content-Language: en-US
To: Roberto Polli <robipolli@gmail.com>, Tommy Pauly <tpauly@apple.com>
Cc: Mark Nottingham <mnot@mnot.net>, HTTP Working Group <ietf-http-wg@w3.org>
References: <A9AE1653-1E17-4E13-838F-83CF65773EB4@mnot.net> <7D5FB52E-BD76-4D0C-82A7-E07635A9C026@apple.com> <CAP9qbHWok+Sj7xyg=CwNbVpUa2o2hOE89=Gn3=Kt1fbyg=nHXQ@mail.gmail.com>
From: Erik Wilde <erik.wilde@dret.net>
In-Reply-To: <CAP9qbHWok+Sj7xyg=CwNbVpUa2o2hOE89=Gn3=Kt1fbyg=nHXQ@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=2a00:d70:0:e::317; envelope-from=erik.wilde@dret.net; helo=mxout017.mail.hostpoint.ch
X-W3C-Hub-Spam-Status: No, score=-10.7
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, NICE_REPLY_A=-4.101, RCVD_IN_DNSWL_LOW=-0.7, 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 1oXSf4-00EcKb-V5 b5caf87b6eca9fa4a2ea38ba04ab1c40
X-Original-To: ietf-http-wg@w3.org
Subject: Re: A structured format for dates?
Archived-At: <https://www.w3.org/mid/1a61e628-0707-820d-a3e5-776992de2f5b@dret.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/40384
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 roberto.

On 2022-09-09 18:38, Roberto Polli wrote:
> 1. a non human-readable serialization makes SF-Date something
> different from Date;
> 2. if this is clear to everyone, it's ok to me, since Date has a lot
> of machine-processing use cases (e.g. caching).
> 
> For new fields, I think that using this data type should not be a
> MUST. I'd like to be free to standardize a new field
> that conveys a date in ISO format (e.g. as a string).

that's possibly a slippery slope. i don't think a MUST is even feasible, 
but it would be good to have some clear guidance. it could be something 
along of the lines of recommending that:

- the general recommendation for timestamps is to use SF-Date which is 
easy to parse and understand for machines.

- if human-readability is a concern, then please use X (RFC 3339?) for 
timestamps.

cheers,

dret.

-- 
Erik Wilde | mailto:erik.wilde@dret.net    |
            | https://youtube.com/ErikWilde |