taia_now(3)
π NAME π
taia_now β bestie, this one grabs you the current time. Like, right now. Clock in, queen. β°β¨
π SYNTAX π
#include <libowfat/taia.h>
extern int taia_now(struct taia* t);
That's it. That's the whole vibe. One header, one function, one pointer. π
πΈ DESCRIPTION πΈ
taia_now... no wait, taia_now puts the current time into t. But fr fr, let's be precise, because we are precise girlies here:
More precisely β and yes the original page literally says tai_now here, not taia_now, and we are not fixing it because facts are facts, bestie π«Ά β tai_now puts into t its best guess as to the TAI64NA label for the 1-attosecond interval that contains the current time.
One attosecond. That's 1/1,000,000,000,000,000,000 of a second. She's ambitious and we respect that. ππ
This implementation of taia_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. And the way that this matches up is with the convention used by the Olson tz library in "right" mode. Iykyk. π
β οΈ BEWARE, BESTIE. Many clocks are not set accurately. And even the best scientific clocks are nowhere near 1-attosecond accuracy. So no, this is not the crown jewel of precision. ππ
BUT. Here's the slay: an inaccurate clock may still produce reasonably accurate time differences. So if you're measuring how long something took rather than what time it is, you're still eating. π₯
π¦ SEE ALSO π¦
tai_now(3)β her sister, the icon herself. π
Okay so this page came from the Library Functions Manual, section 3, page taia_now(3), and ngl there's no date stamped on this one β it just shows up with the same taia_now(3) footer it started with. Love that for her. No notes. Periodt. πβ¨π
π¦ 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