scan_httpdate(3)
π scan_httpdate β ok so bestie, let's talk HTTP dates π
a page from the Library Functions Manual π (yes that's the manual name, we're fancy here)
β¨ NAME β¨
scan_httpdate β parses a HTTP date πΈ literally just that, she does one thing and she does it well π
π¦ SYNTAX π¦
okay so first you gotta pull in the header, no cap:
#include <libowfat/scan.h>
size_t scan_httpdate(const char *src,time_t *dest);
π DESCRIPTION π
scan_httpdate takes a date β the kind of date that's defined in the HTTP standard, iykyk β and parses it straight into a time_t. π«Ά
She hands you back the number of bytes she read from src. And if the parse goes wrong? you get 0. Zero bytes, zero vibes, parse error, periodt. π
β οΈ heads up bestie: the only supported time zone isGMT. That's it. That's the whole list. Don't come at her with yourESTor your+02:00, she's not doing it. π
π SEE ALSO π
fmt_httpdate(3)β the other half of the duo, the one who writes the dates whilescan_httpdatereads them. main character energy from both of them fr fr β¨
and that's the whole page, babe πΈ this one lives in the Library Functions Manual (that's the manual name, right at the top, iconic) and she's filed under scan_httpdate(3) β no version number, no date, just her name in the footer being mysterious and lowkey iconic. π π π¦ π β π
π¦ where this page comes from
- alpine 3.24: libowfat-doc 0.34-r0 Β· GPL-2.0-only
- debian bookworm: libowfat-dev 0.32-4 Β· GPL-2.0-only
- debian trixie: libowfat-dev 0.32-5 Β· GPL-2.0-only
- nixos 26.05: libowfat 0.34
- nixpkgs unstable: libowfat 0.34
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- ubuntu noble: libowfat-dev 0.32-4.1build1 Β· GPL-2.0-only
- ubuntu questing: libowfat-dev 0.32-5
- ubuntu resolute: libowfat-dev 0.34-2 Β· GPL-2.0-only
- ubuntu stonking: libowfat-dev 0.34-2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms