W3C home > Mailing lists > Public > ietf-http-wg@w3.org > April to June 2022

Re: A structured format for dates?

From: Glenn Strauss <gs-lists-ietf-http-wg@gluelogic.com>
Date: Thu, 16 Jun 2022 00:18:56 -0400
To: Mark Nottingham <mnot@mnot.net>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Message-ID: <YqqvMFbszynHQ0l9@xps13>
On Thu, Jun 16, 2022 at 11:54:26AM +1000, Mark Nottingham wrote:
> I'd love to hear what people think about this issue:
>   https://github.com/httpwg/http-extensions/issues/2162
> 
> In a nutshell, the idea is to define a new structured type for dates, so that instead of e.g.,
> 
>   SF-Date: 784072177
> 
> we'd have:
> 
>   SF-Date: @1994-11-06T08:49:37Z 
> 
> ...as the textual representation. Obviously, if we ever do binary structured fields, its representation there could be more efficient.
> 
> Thoughts?

+1 for ISO 8601 date format with 24-hour time notation (RFC 3339)
   (without the '@' ?)

Preference: restrict SF-Date to UTC and strftime format "%FT%TZ"
   (written as "%Y-%m-%dT%H:%M:%SZ" on ancient strftime impl, or MS)

Cheers, Glenn
Received on Thursday, 16 June 2022 04:19:21 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 2 February 2023 18:44:07 UTC