Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Jul 2015 14:01:48 -0700
From:      John-Mark Gurney <jmg@funkthat.com>
To:        Peter Jeremy <peter@rulingia.com>
Cc:        Leif Pedersen <bilbo@hobbiton.org>, "freebsd-security@freebsd.org" <freebsd-security@freebsd.org>
Subject:   Re: Leap Second
Message-ID:  <20150701210148.GF96349@funkthat.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
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@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."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150701210148.GF96349>