<div dir="ltr">I was playing with:<div>io_lib:fread("~3s, ~2d ~3s ~4d ~2d:~2d:~2d GMT", Date7231)<br></div><div><br></div><div>Looking at cowlib you're binary parsing instead. Thank you Loïc.</div><div><br></div><div>Best,</div><div>r.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 3, 2015 at 9:07 AM, Loïc Hoguin <span dir="ltr"><<a href="mailto:essen@ninenines.eu" target="_blank">essen@ninenines.eu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">cow_date:parse_date(Bin).<br>
<br>
Returns {{Y,Mo,D},{H,Mi,S}}.<div><div class="h5"><br>
<br>
On 04/03/2015 06:59 PM, Roberto Ostinelli wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
All,<br>
The Date field of HTTP headers uses date format as defined in RFC 7231,<br>
for example:<br>
<br>
Date: Tue, 15 Nov 1994 08:12:31 GMT<br>
<br>
What is the fastest way to parse this header and convert it to an epoch<br>
time?<br>
<br>
Best,<br>
r.<br>
<br>
<br></div></div>
______________________________<u></u>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/<u></u>listinfo/erlang-questions</a><br>
<br><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
-- <br>
Loïc Hoguin<br>
<a href="http://ninenines.eu" target="_blank">http://ninenines.eu</a><br>
</font></span></blockquote></div><br></div>