[LEAPSECS] php breaks if UTC has no leap seconds?

Steve Allen sla at ucolick.org
Thu Dec 9 17:53:35 EST 2010


The powers that be have awarded telescope time in a novel fashion,
so I'm plowing through the php code that publishes the schedules.

To my surprise I find that php has a method which thinks it knows
where the sun is
http://www.php.net/manual/en/function.date-sun-info.php
As near as I can tell, this method gives the UT of the various
daily events for a given location on earth.

Related to that is another method which thinks it knows the
local civil time of sunrise
http://www.php.net/manual/en/function.date-sunrise.php
Again, this appears likely to presume that the POSIX time_t
provides a useable value for UT.

This is the first example I've come across where a widely used
API will break if UTC does not continue to have leap seconds.

--
Steve Allen <sla at ucolick.org> WGS-84 (GPS)
UCO/Lick Observatory Natural Sciences II, Room 165 Lat +36.99855
University of California Voice: +1 831 459 3046 Lng -122.06015
Santa Cruz, CA 95064 http://www.ucolick.org/~sla/ Hgt +250 m


More information about the LEAPSECS mailing list