S6-CLOCK(1)

πŸ“¦ version 2.3.1.2, in nixpkgs unstable

s6-clock(1) β€” get or set the system clock πŸ’–

okay bestie, welcome to the S6-CLOCK(1) page! The manual name is literally S6-CLOCK(1), and it lives in the General Commands Manual section. This is the one that gets or sets your system clock, and it’s giving time-lord main character energy. ✨

🌸 NAME 🌸

s6-clock β€” get or set the system clock πŸ’…

🌈 SYNOPSIS 🌈

s6-clock [label]

πŸ’– DESCRIPTION πŸ’–

When you call it with no argument at all, s6-clock writes the current system time to stdout as a TAI64N[1] timestamp. That’s it β€” no extra drama, just time on the screen. 🫢

When you give it an argument called label, and that label must be a TAI64N[1] timestamp, s6-clock sets the system time to this value. So yes, it can read the clock AND set the clock β€” dual threat behavior, honestly iconic. πŸ‘‘

s6-clock only prints or accepts TAI time, no matter what the system clock is set to (TAI-10 or UTC). It will automatically make the right conversions for your system clock. Make sure your skalibs[2] has been built with the right settings. ⚠️ This part is important, bestie β€” if skalibs is built with the wrong settings, that’s a whole vibe check fail.

πŸ’… EXIT STATUS πŸ’…

  • 111 β€” Temporary error.
  • 100 β€” Permanent error, such as a misuse.
  • 127 β€” Unable to execute program - not found.
  • 126 β€” Unable to execute program - other reason.

πŸ¦‹ SEE ALSO πŸ¦‹

okay so the whole s6 squad pulls up here:

This man page is ported from the authoritative documentation at: https://skarnet.org/software/s6-portable-utils/s6-clock.html

🌸 AUTHORS 🌸

  • Laurent Bercot
  • Alexis <flexibeast@gmail.com> (man page port)

okay that’s the whole page β€” Debian edition, dated April 16, 2022, S6-CLOCK(1), byeee bestie πŸ’…βœ¨

πŸ“¦ where this page comes from