On Fri, Jan 06, 2012 at 12:41:13PM +0100, Rob van der Putten wrote: > >It is announced now, it occurs Jun 30. > >The tzdata database contains a file called "leapseconds" which contains > >all of the leapseconds which have occured or are know to occur in the > >future. > > In 'right' (based on the International Atomic Time) it does, in > 'posix' (based on the Coordinated Universal Time) it doesn't. > Does anyone use 'right'? Is this supported by NTPD?
I don't think you can use the "right" timezones on system running synchronized via NTP. But ntp/chrony could use the information about leap seconds stored in the right/UTC timezone and I think that would be a nice feature. To check if a leap second will occur on a specified date, it just needs to call mktime() in the right/UTC zone and see if the seconds overflowed or not, see http://pastebin.com/DqM4s35Y -- Miroslav Lichvar _______________________________________________ questions mailing list [email protected] http://lists.ntp.org/listinfo/questions
