getboottime64(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, welcome to getboottime64(9) from the Kernel API Manual β€” this is the page for getboottime64, which returns the real time of system boot. that's it, that's the name, and honestly it ate. πŸ’…

✨ SYNOPSIS ✨

the signature is lowkey tiny, but here it is exactly:

void getboottime64 (struct timespec64 *ts );

🧚 ARGUMENTS 🧚

  • ts β€” pointer to the timespec64 to be set. yep, that's the whole argument list; it's giving minimalism. πŸŽ€

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so what's the tea? it returns the wall-time of boot in a timespec64. πŸ•°οΈ

this is based on the wall_to_monotonic offset and the total suspend time. no cap.

and listen: calls to settimeofday will affect the value returned β€” which basically means that however wrong your real time clock is at boot time, you get the right time here. iconic behavior, honestly. 😭

🌈 SEE ALSO 🌈

the whole timekeeping friend group is here, go say hi:


sign-off bestie: this page's source/version is ./kernel/time, dated October 2026, and it's the getboottime64(9) manual. mwah, byeeee πŸ«ΆπŸ’–

πŸ“¦ where this page comes from