Module cow_date

Function Index

parse_date/1Parse the HTTP date (IMF-fixdate, rfc850, asctime).
rfc1123/1Return the date formatted according to RFC1123.
rfc2109/1Return the date formatted according to RFC2109.
rfc7231/1Return the date formatted according to RFC7231.

Function Details

parse_date/1

parse_date(DateBin::binary()) -> calendar:datetime()

Parse the HTTP date (IMF-fixdate, rfc850, asctime).

rfc1123/1

rfc1123(DateTime::calendar:datetime()) -> binary()

Return the date formatted according to RFC1123.

rfc2109/1

rfc2109(X1::calendar:datetime()) -> binary()

Return the date formatted according to RFC2109.

rfc7231/1

rfc7231(X1::calendar:datetime()) -> binary()

Return the date formatted according to RFC7231.


Generated by EDoc