tai_now(3)
π¦ tai_now(3) π¦
okay so bestie, we're in the Library Functions Manual and this page is literally called tai_now(3). it's giving "what time is it? TAI time." no cap. π
β¨ NAME β¨
tai_nowβ get current time β°
β¨ SYNTAX β¨
#include <libowfat/tai.h>
extern int tai_now(struct tai* t);
β¨ DESCRIPTION β¨
so tai_now puts the current time into t. periodt. but more precisely? it puts into t its best guess as to the TAI64 label for the 1-second interval that contains the current time. it's not doing extra, it's just guessing the label for the second we're in. π
This implementation of tai_now assumes that the time_t returned from the time function represents the number of TAI seconds since 1970-01-01 00:00:10 TAI. yep, that exact epoch. this matches the convention used by the Olson tz library in right mode. iykyk. π¦
β¨ SEE ALSO β¨
taia_now(3)β go read that one too, bestie π
that's the whole tai_now(3) page from the Library Functions Manual β no date on this one, but it's still iconic. mwah π
π¦ 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