scan_iso8601(3)
omg hi bestie! π you're on the scan_iso8601(3) page from the Library Functions Manual, and we are about to parse some ISO-8601 timestamps. it's giving timezone chaos, but make it cute. β¨
π NAME π
scan_iso8601 β parse an ISO-8601 timestamp. periodt. π
πΈ SYNTAX πΈ
#include <libowfat/scan.h>
size_t scan_iso8601(const char *src,struct timespec *dest);
π¦ DESCRIPTION π¦
okay so scan_iso8601 parses a timestamp as defined in ISO-8601 into a struct timespec. it returns the number of bytes read from src β and if the parse errors out? it returns 0. not a vibe, but at least you know. π
scan_iso8601 supports input timestamps in time zones other than UTC even though fmt_iso8601 does not. yes bestie, scan is the flexible one here. π
note, and this is important: the returned time_t is always in UTC, even if a local time was given. UTC only. no cap. π
π SEE ALSO π
bye bestie! π«Ά the footer just says scan_iso8601(3) β that's the source/version/date tea we got, and it's 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