timestamp_truncate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay so bestie, meet timestamp_truncate β€” truncate timespec to a granularity. this is the Kernel API Manual page for it, and yes, we're gonna make it make sense. πŸ’…βœ¨

πŸ¦‹ SYNOPSIS πŸ¦‹

struct timespec64 timestamp_truncate (struct timespec64 t , struct inode
       *inode );

🌸 ARGUMENTS 🌸

  • t β€” a Timespec. literally the time value getting the truncation treatment. πŸ•°οΈ
  • inode β€” the inode being updated. that's the one whose filesystem is setting the granularity vibe. 🫢

✨ DESCRIPTION ✨

so here's the whole thing: timestamp_truncate truncates a timespec to the granularity supported by the fs containing the inode. Always rounds down β€” no cap, it does not round up, ever. πŸ‘‘

and listen: gran must not be 0 nor greater than a second (NSEC_PER_SEC, or 10^9 ns). like, that's the rule. not negotiable. πŸ’€

πŸ”₯ SEE ALSO πŸ”₯


mwah πŸ’‹ that's the whole page, bestie. source/version vibe: ./fs, dated October 2026, and the man page is timestamp_truncate(9). go forth and truncate responsibly. πŸ‘‘βœ¨

πŸ“¦ where this page comes from