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
yearis 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).