Linux "date" command ignores leap-seconds?

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Tue Jan 15 18:55:10 UTC 2013


On Tue, Jan 15, 2013 at 12:17:24PM -0500, Christopher Browne wrote:
> That being said, you should be able to figure out how many leap seconds have
> occurred based on a given UNIX timestamp.
> 
> Actually, there's a pretty simple table:
> <http://en.wikipedia.org/wiki/Leap_second>
> 
> Regrettably, it seems like some manual work to extract the data from
> there; it would
> be nice to have something like the TZ database for leap seconds.

Of course that would mean updating the tz database everytime it is
decided a leap second should be added.  And is it really timezone related
or does it belong somewhere else?

-- 
Len Sorensen
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list