It is possible to test whether a leap second will be used. Due to the nature of NTP, the test might work up to 24 hours before the leap second. Some major reference clock sources only announce leap seconds one hour ahead of the event. Query the NTP daemon:
%
ntpq -c 'rv 0 leap'
Output that includes leap_add_sec
indicates proper support of the leap second. Before the 24
hours leading up to the leap second, or after the leap second
has passed, leap_none
will be shown.
All FreeBSD documents are available for download at http://ftp.FreeBSD.org/pub/FreeBSD/doc/
Questions that are not answered by the
documentation may be
sent to <[email protected]>.
Send questions about this document to <[email protected]>.