Re: Re: localtime()
Peter Conrad <[email protected]> Mon, 05 Dec 2011 12:03:20 +0100
| Newsgroups | gmane.linux.lib.dietlibc |
|---|---|
| Organization | Tivano Software GmbH |
| Message-ID | <2274984.VkhboKoGo9@rowling> |
Hallo, Thorsten Glaser schrieb am 05.12.2011 um 11:44: > > > Therefore I think your conclusion that counting > > leap seconds is required by law is wrong. > > It’s implicit (and more verbose in ZeitG): to be able > to have a Jan 1 00:59:60 CET, the leap second must > exist in the system. yes and no. It's a question of representation. The law does not require the system to have a unix timestamp matching Jan 1 00:59:60 CET. You *can* have applications which are able to process such a time value without having a matching unix timestamp. I think database engines usually store datetime values as calendar date + clock time, for example. You can also run something like ntpd which lets your system clock jump from 00:59:59 straight to 01:00:00 without being off the real time by more than 0.5 seconds. :-) Bye, Peter -- Peter Conrad Tivano Software GmbH Bahnhofstr. 18 63263 Neu-Isenburg Tel: 06102 / 8099070 Fax: 06102 / 8099071 HRB 11680, AG Offenbach/Main Geschäftsführer: Martin Apel