tai_now(3)

πŸ“¦
version 0.34 Β· 2 versions
  • 0.34 Β· alpine 3.24, debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 0.30 Β· fedora 43, fedora 44, ubuntu jammy
, in alpine 3.24, debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ¦‹ 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 πŸ’‹