S6-CLOCK(1)
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:
s6-basename(1)s6-cat(1)s6-chmod(1)s6-chown(1)s6-cut(1)s6-dirname(1)s6-dumpenv(1)s6-echo(1)s6-env(1)s6-expr(1)s6-false(1)s6-format-filter(1)s6-grep(1)s6-head(1)s6-hiercopy(1)s6-linkname(1)s6-ln(1)s6-ls(1)s6-maximumtime(1)s6-mkdir(1)s6-mkfifo(1)s6-nice(1)s6-nuke(1)s6-pause(1)s6-printenv(1)s6-quote(1)s6-quote-filter(1)s6-rename(1)s6-rmrf(1)s6-seq(1)s6-sleep(1)s6-sort(1)s6-sync(1)s6-tai64ndiff(1)s6-tail(1)s6-touch(1)s6-true(1)s6-uniquename(1)s6-unquote(1)s6-unquote-filter(1)s6-update-symlinks(1)seekablepipe(1)[1]βhttps://skarnet.org/software/skalibs/libstddjb/tai.html#timestamp[2]βhttps://skarnet.org/software/skalibs/
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
- nixpkgs unstable: s6-portable-utils 2.3.1.2
- nixpkgs unstable: s6-portable-utils-man-pages 2.3.1.1.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms