[LEAPSECS] Crunching Bulletin B numbers (POSIX time)

Tony Finch dot at dotat.at
Tue Feb 22 19:20:17 EST 2011


On 22 Feb 2011, at 23:19, Steve Allen <sla at ucolick.org> wrote:

>

> 1) buy a Meinberg NTP server

> 2) configure it to emit GPS time instead of UTC

> 3) get the zoneinfo source code files

> 4) edit the "leapseconds" file and delete all leaps before 1980

> 5) compile the zoneinfo files yourself, asking for the "right" ones

> 6) install the resulting zoneinfo files

> 7) set the system to use the "right" timezone

> 8) set the system to use your Meinberg stratum 1 NTP server

>

> then you have a system which is running its time_t based on GPS time,

> therefore does not have issues with leap seconds resetting the clock,

> and which produces a correct local time string for every time zone.


You forgot to audit all the software to ensure that all code that does time calculations uses your hacked TZ library. Java includes an independent implementation, for example.

Tony.
--
f.anthony.n.finch <dot at dotat.at> http://dotat.at/



More information about the LEAPSECS mailing list