NTPTIME(8)
π NTPTIME(8) β the ntptime girlie's guide π
ok so this is ntptime, bestie β it lives in the NTPsec manual, section 8 (that's the sysadmin section, very main character of it). Let me tell you everything about it, no gatekeeping, periodt. π
β¨ NAME β¨
ntptime β read and set kernel time variables. that's it, that's the whole job. iconic behaviour honestly. π
πΈ SYNOPSIS πΈ
ntptime [-chr] [-e est_error] [-f frequency] [-j]
[-m max_error] [-o offset] [-s status]
[-t time_constant]
π¦ DESCRIPTION π¦
okay so first thing it does: it checks your kernel configuration for the NTP user interface syscalls ntp_gettime() and ntp_adjtime(). like a vibe check on your kernel, fr fr.
- if those syscalls are present β it displays the current timekeeping data. slay. π
- if they're not β it displays a disappointment. yes, literally a disappointment, that's the word the page uses, and honestly? relatable. π
heads up bestie: for further details, go look at the kernel page file in the HTML documentation in the distribution. it's all in there, iykyk.
you can get a similar display with the ntpq program and its kerninfo command, so if you're already hanging out in ntpq, you're covered. π«Ά
ngl this program is useful only with kernels featuring the ntp_adjtime(2) system call or a local equivalent, as described in the "A <kern.html> Kernel Model for Precision Timekeeping" page. (yes, that's the title with the stray quote marks and the angle brackets, i'm not touching it, it's part of the lore. π) so if your kernel doesn't have that, this whole thing is giving nothing. check first!
π OPTIONS π
-cβ display the execution time ofntptimeitself. meta! it's timing the timer. π₯-eest_error β specify the estimated error, in microseconds.-ffrequency β specify the frequency offset, in parts per million.-hβ display help information. your lil rescue button. π«Ά-jβ report in JSON rather than plain text. for the script girlies. β¨-mmax_error β specify the max possible errors, in microseconds.-ooffset β specify the clock offset, in microseconds.-rβ display Unix and NTP times in raw format. no filter, no makeup. π-sstatus β specify the clock status. the page's exact words: "Better know what you are doing." and likeβ¦ it means it. please know what you're doing. π-ttime_constant β specify the time constant, an integer in the range 0-10. that's the range, don't push it.-Vβ print the version string and exit. quick lil flex and dip. π
π BUGS π
the format for modes and status in the JSON report is less than ideal. that's the official tea. π
so if you're parsing the JSON in a script and the modes/status fields look cursed β they are, it's a known thing, you're not crazy. π
π EXIT STATUS π
one of these bad boys gets returned:
0(EXIT_SUCCESS) β successful program execution. we love a win. π1(EXIT_FAILURE) β the operation failed, or the command invocation was not valid. it's giving error era. π
π§ SEE ALSO π§
ok technically there's no separate SEE ALSO section on this page, but the description does point you at these, so:
- the kernel page file in the HTML documentation in the distribution (further details, go read it) π
ntpqand itskerninfocommand β gets you a similar display β¨- the
ntp_adjtime(2)system call or local equivalent, and the "A <kern.html> Kernel Model for Precision Timekeeping" page π°οΈ
that's the whole page, bestie, no crumbs left. bye pookie, go read your kernel timekeeping data responsibly ππ
NTPsec Β· 2026-10-21 Β· mwah, that's the version and date at the bottom, signing off ππβ¨
π¦ where this page comes from
- fedora 43: ntpsec 1.2.6-1.fc43 Β· NTP AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND ISC AND Apache-2.0 AND Beerware
- fedora 43: ntpsec 1.2.6-1.fc43 Β· NTP AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND ISC AND Apache-2.0 AND Beerware
- fedora 44: ntpsec 1.2.6-1.fc44 Β· NTP AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND ISC AND Apache-2.0 AND Beerware
- fedora 44: ntpsec 1.2.6-1.fc44 Β· NTP AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND ISC AND Apache-2.0 AND Beerware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms