[erlang-questions] Date parsing (RFC 7231)
Loïc Hoguin
essen@REDACTED
Fri Apr 3 18:07:14 CEST 2015
cow_date:parse_date(Bin).
Returns {{Y,Mo,D},{H,Mi,S}}.
On 04/03/2015 06:59 PM, 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
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
--
Loïc Hoguin
http://ninenines.eu
More information about the erlang-questions
mailing list