Date: Thu, 2 Jul 2015 06:27:28 +1000 From: Peter Jeremy <peter@rulingia.com> To: Leif Pedersen <bilbo@hobbiton.org> Cc: "freebsd-security@freebsd.org" <freebsd-security@freebsd.org> Subject: Re: Leap Second Message-ID: <20150701202728.GA9532@server.rulingia.com> In-Reply-To: <CAK-wPOjqZUPnWSbgXYt%2Bghu1BHUK7E=dUVU=oW8%2B0p7ywzN4Wg@mail.gmail.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>
next in thread | previous in thread | raw e-mail | index | archive | help
--RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. --=20 Peter Jeremy --RnlQjJ0d97Da+TV1 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJVlE0wXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRFRUIyOTg2QzMwNjcxRTc0RTY1QzIyN0Ux NkE1OTdBMEU0QTIwQjM0AAoJEBall6Dkogs0E4QP/j6Cv45gktUsLeZHjhbn1pD3 0G1H/ZiJfmFqJBEmHTiADZW2mzj/TZ3uYZBuoMYLtRHAfLXWqPd595WDk1NHWaZj /JRRKqmZCTmu50AWycTbknN7Kgy0HRJSWBK2Pxi122bv83GuuaJC6/+XASc+q1Nr nolvFpbw7gQDYyq50vNNm6CRfFDE+VgnAoNwMGcLeq5LeP7Ol32YiSUId0mr7iJ9 8LTcdXmW/3gARuAMatjjYXPaQft49/Dfz+OpWhB4yUwEQup/igAKdQLs+L2/lL3A CpeRp5YRbaPUf7+sv2X3ncX+bGkSjGqwjfAD/pLXc1kZyNgjILzPw+KbTCbUQsUk wFxUHZOVCThoMw4zced4Yp70dP8/Tx6oWkVjpb/y4fme713KGEqb8Xw64CMPJqGj OWp6hYkh2HA5zRxSZ6N4x189S+9DmXzmXlHv5vFpuJoTFanFKQ3dQNzMPPM74XDY BcjJ/ZNtGRlpFCCuWJIXp7S9kKhMHtu2hpYqbaDUjti0YAa5LQUhi9pecH7rq1Kz akRLWms6P38GjDl2yUMGgUUIQBk8B8w7IoD2cRldQ6RL3PP0MiAFV8wl6C+2ER5/ +UDHpRen3rC5ljEoeZ6B55MlQOavtxpZ4S25cPgPaPTmNUvaXAlzV+5B3bO5PrNG wjmsjWQuu6brr9Wf+WK8 =yFtm -----END PGP SIGNATURE----- --RnlQjJ0d97Da+TV1--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150701202728.GA9532>