Subject: Re: The 2005 leap second is not recognised by NetBSD 3.0?
To: Rhialto <email@example.com>
From: Jonathan A. Kollasch <firstname.lastname@example.org>
Date: 12/31/2005 13:10:49
Content-Type: text/plain; charset=us-ascii
On Sat, Dec 31, 2005 at 02:41:12PM +0100, Rhialto wrote:
> Well, adjusting for time zone, I still don't get an expected result:
> $ export TZ=3DUTC
> $ date -r 1136073599; date -r 1136073600
> Sat Dec 31 23:59:59 UTC 2005
> Sun Jan 1 00:00:00 UTC 2006
> Where is Sat Dec 31 23:59:60 UTC 2005, as promised in
It's mandated by POSIX that we *NOT* recognize leap seconds, it's
up to ntpd to *break* the clock's monotonicity.
You can work around this by using zoneinfo files compiled with leap
second support, and setting clock to the TAI value of unix time.
Read src/share/zoneinfo/Makefile w/ regards to the REDO variable.
However this will break things that assume time(3) to have the POSIX
value of time (currently 22 seconds different, soon 23).
rdate and ntpd break with this numbering system. In short POSIX is
Read the Wikipedia article on Unix_time. See also
Quite simply the leap seconds don't exist in POSIX chronology.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (NetBSD)
-----END PGP SIGNATURE-----