[erlang-questions] Date parsing (RFC 7231)

Roberto Ostinelli <>
Fri Apr 3 18:11:19 CEST 2015


Thank you Jesse, I don't need timezone awareness since RFC 7231 specifies
that dates must be specified in GMT.

On Fri, Apr 3, 2015 at 9:09 AM, Jesse Gumm <> wrote:

> qdate:to_unixtime(DateStringOrBin) should do the trick for you, with the
> timezone awareness.
> On Apr 3, 2015 11:00 AM, "Roberto Ostinelli" <> wrote:
>
>> All,
>> The Date field of HTTP headers uses date format as defined in RFC 7231,
>> for example:
>>
>> Date: Tue, 15 Nov 1994 08:12:31 GMT
>>
>> What is the fastest way to parse this header and convert it to an epoch
>> time?
>>
>> Best,
>> r.
>>
>> _______________________________________________
>> erlang-questions mailing list
>> 
>> http://erlang.org/mailman/listinfo/erlang-questions
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150403/3d28eb59/attachment.html>


More information about the erlang-questions mailing list