[erlang-questions] Date parsing (RFC 7231)

Jesse Gumm gumm@REDACTED
Fri Apr 3 18:09:58 CEST 2015


qdate:to_unixtime(DateStringOrBin) should do the trick for you, with the
timezone awareness.
On Apr 3, 2015 11:00 AM, "Roberto Ostinelli" <roberto@REDACTED> 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
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150403/29fd4e4e/attachment.htm>


More information about the erlang-questions mailing list