[LEAPSECS] (no subject)
Tony Finch
dot at dotat.at
Mon Dec 22 12:48:24 EST 2008
On Mon, 22 Dec 2008, M. Warner Losh wrote:
>
> Applications don't fill out struct tm's to compute time_t's. If they
> all did, time_t's definitions wouldn't matter so much. However, many of
> them *KNOW* that it *IS* seconds since 1970 (with leap seconds swizzled
> in, so you can ignore them entirely).
There are good reasons for this. I mentioned Java because libraries for
languages other than C often want a native implementation of time and date
functions so that they fit in better with the rest of the language.
There's also the fact that the standard C library is bad in many ways so
it's common for programmers to try to improve on it.
Tony.
--
f.anthony.n.finch <dot at dotat.at> http://dotat.at/
HUMBER THAMES DOVER: WEST OR NORTHWEST BACKING SOUTHWEST 4 OR 5, BUT BECOMING
VARIABLE 3 IN DOVER. SLIGHT OR MODERATE. MAINLY FAIR. MODERATE OR GOOD,
OCCASIONALLY POOR.
More information about the LEAPSECS
mailing list