Date: Wed, 1 Jul 2015 17:27:13 -0500 From: Leif Pedersen <bilbo@hobbiton.org> To: Peter Jeremy <peter@rulingia.com> Cc: "freebsd-security@freebsd.org" <freebsd-security@freebsd.org> Subject: Re: Leap Second Message-ID: <CAK-wPOhsFxjuKwvtPau2BhFGtvK6oHz=7mkSaMFFEVV0oVB2GQ@mail.gmail.com> In-Reply-To: <20150701202728.GA9532@server.rulingia.com> References: <CAA3htvuv0Emy5SazXzYNZegKzS-Z4=tc3ua8Ca6GMgeTj99n7A@mail.gmail.com> <1435154274.964221.306546033.052903CD@webmail.messagingengine.com> <86bnfwxa4m.fsf@nine.des.no> <1435758941.105242.312562265.3103CECB@webmail.messagingengine.com> <CAK-wPOjqZUPnWSbgXYt%2Bghu1BHUK7E=dUVU=oW8%2B0p7ywzN4Wg@mail.gmail.com> <20150701202728.GA9532@server.rulingia.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jul 1, 2015 at 3:27 PM, Peter Jeremy <peter@rulingia.com> wrote: > > On 2015-Jul-01 12:46:21 -0500, Leif Pedersen <bilbo@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. > >From the docs, I'm fairly sure that the leap-second files don't stop NTP from fudging hardware clock, and only help it do so more gracefully. > There's also posix2time(3) to convert between a TAI-based time_t and a > POSIX-based time_t. posix2time(3) doesn't seem to have anything to do with setting the hardware clock. > > -- > Peter Jeremy -- As implied by email protocols, the information in this message is not confidential. Any middle-man or recipient may inspect, modify, copy, forward, reply to, delete, or filter email for any purpose unless said parties are otherwise obligated. As the sender, I acknowledge that I have a lower expectation of the control and privacy of this message than I would a post-card. Further, nothing in this message is legally binding without cryptographic evidence of its integrity. http://bilbo.hobbiton.org/wiki/Eat_My_Sig
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAK-wPOhsFxjuKwvtPau2BhFGtvK6oHz=7mkSaMFFEVV0oVB2GQ>
