Re: 2008 is 1s longer than normal.

From: Date: Fri, 19 Dec 2008 16:44:49 +0000
Subject: Re: 2008 is 1s longer than normal.
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-42354@lists.php.net to get a copy of this message
Richard Quadling wrote: > Hi. > > With 2008 having a leap-second, does PHP handle this? > > In looking at http://en.wikipedia.org/wiki/Leap_second, there > have > been quite a few leap seconds - 34 since Jan 1st 1972. > > So, if PHP isn't making any changes does this mean PHP time is 34 > seconds behind UTC? > Unix time conventionally does not include leap seconds. This allows ordinary applications to convert seconds-since-epoch to calendar dates without any knowledge of leap seconds. Ntpd is tasked with changing the system clock to account for this, ultimately in response to a leap second change propagated from the stratum 1 time servers. http://www.eecis.udel.edu/~mills/leap.html -- Tim Starling

« previous php.internals (#42354) next »