Leap Second
John-Mark Gurney
jmg at funkthat.com
Wed Jul 1 21:01:50 UTC 2015
Peter Jeremy wrote this message on Thu, Jul 02, 2015 at 06:27 +1000:
> On 2015-Jul-01 12:46:21 -0500, Leif Pedersen <bilbo at hobbiton.org> wrote:
> >Is there a reasonable way to enable awareness of leap-seconds while syncing
> >with ntpd? That is to say, how can I get the system to include leap-seconds
> >in calculating `date +%s`, without having `date` be off by 26[1] seconds?
>
> ntpd(8) has provision for specifying a leapsecond file which presumably
> makes it leap-second aware. I haven't looked into the details.
>
> There's also posix2time(3) to convert between a TAI-based time_t and a
> POSIX-based time_t.
Though from my reading of the code, you need to have TZ files compiled
w/ leap seconds which FreeBSD doesn't do by default...
--
John-Mark Gurney Voice: +1 415 225 5579
"All that I will do, has been done, All that I have, has not."
More information about the freebsd-security
mailing list