Http module

parse_http_date

procedureextensionexperimentalSource

Reads an IMF-fixdate into seconds since 1970-01-01 UTC. The obsolete RFC 850 and asctime forms are not accepted.

Example↗
seconds, ok := parse_http_date("Sun, 06 Nov 1994 08:49:37 GMT");
assert(ok && seconds == 784111777);
parse_http_date :: (text: string) -> (s64, bool)

Parameters

text: string

Returns

s64
bool

See also