Re: A structured format for dates?

Hi Glenn,

> On 16 Jun 2022, at 2:18 pm, Glenn Strauss <gs-lists-ietf-http-wg@gluelogic.com> wrote:
> 
> 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 '@' ?)

Structured fields requires a sigil character to identify a type in the textual representation -- `@` seems appropriate for a date.

Cheers,



--
Mark Nottingham   https://www.mnot.net/

Received on Thursday, 16 June 2022 04:23:50 UTC