Re: A structured format for dates?

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