Skip to main content

Module date

Module date 

Source
Expand description

A minimal, dependency-free RFC 1123-ish HTTP date parser.

Useful for kernel/bootloader consumers that need to parse a Date header (e.g. from a TLS handshake) without pulling in a full date/time crate.

Functionsยง

is_leap_year
Returns whether year is a leap year in the Gregorian calendar.
parse_http_date
Parses an HTTP date of the form "Mon, 01 Jun 2026 12:41:36 GMT" into a Unix timestamp (seconds).