[erlang-questions] Date parsing (RFC 7231)

Loïc Hoguin <>
Fri Apr 3 18:10:45 CEST 2015


The date header is always in GMT though. :-)

On 04/03/2015 07:09 PM, 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" <
> <mailto:>> 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
>      <mailto:>
>     http://erlang.org/mailman/listinfo/erlang-questions
>
>
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>

-- 
Loïc Hoguin
http://ninenines.eu


More information about the erlang-questions mailing list