Net.HTTP.Date

lib/Net/HTTP/Date.gob

HTTP dates in the preferred format of RFC 9110 ยง5.6.7, IMF-fixdate: Sun, 06 Nov 1994 08:49:37 GMT, always in UTC, always 29 bytes.

Only this format is read. The RFC also asks a recipient to accept the obsolete RFC 850 and asctime formats, which no sender has been allowed to generate since 1999; a date in either does not read.

fun parse : fun(String) -> Option Instant

Returns the instant text writes, which must be an IMF-fixdate whose day name agrees with its date.

fun toString : fun(Instant) -> String

Returns t as an IMF-fixdate, to the whole second, rounded down.