public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* [Bug 221186] New: clock_gettime CLOCK_TAI is incorrectly specified
@ 2026-03-07 14:21 bugzilla-daemon
  2026-03-07 14:56 ` Alejandro Colomar
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: bugzilla-daemon @ 2026-03-07 14:21 UTC (permalink / raw)
  To: linux-man

https://bugzilla.kernel.org/show_bug.cgi?id=221186

            Bug ID: 221186
           Summary: clock_gettime CLOCK_TAI is incorrectly specified
           Product: Documentation
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: man-pages
          Assignee: documentation_man-pages@kernel-bugs.osdl.org
          Reporter: mpatocka@redhat.com
        Regression: No

The man page for clock_gettime says "CLOCK_TAI (since Linux 3.10;
Linux-specific)
A nonsettable system-wide clock derived from wall-clock time but ignoring leap
seconds."

When UTC was announced, it was already 10 seconds behind TAI. Since that, 27
leap seconds have been added. According to the man page, the difference between
wall clock an CLOCK_TAI should be 27 seconds, but in it is 37 seconds in fact.
The kernel is correct (it returns 37 as the difference between TAI and UTC),
but the man page should be fixed to reflect that.

I suggest to change the man page to:

CLOCK_TAI (since Linux 3.10; Linux-specific)
A nonsettable system-wide clock showing physical time elapsed since Jan 1 1970
0:00:00.00 TAI (Dec 31 1969 23:59:50.00 UTC). This clock does not experience
discontinuities and backwards jumps caused by NTP inserting leap seconds as
CLOCK_REALTIME does. This clock changes when system time is adjusted by the
user or NTP for the purpose of correcting wrong time setting. TAI means temps
atomique international (International Atomic Time).

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-03-07 22:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-07 14:21 [Bug 221186] New: clock_gettime CLOCK_TAI is incorrectly specified bugzilla-daemon
2026-03-07 14:56 ` Alejandro Colomar
2026-03-07 20:59   ` Paul Eggert
2026-03-07 22:44     ` Alejandro Colomar
2026-03-07 14:56 ` [Bug 221186] " bugzilla-daemon
2026-03-07 20:59 ` bugzilla-daemon
2026-03-07 22:45 ` bugzilla-daemon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox