[LEAPSECS] A new use for Pre-1972 UTC

Poul-Henning Kamp phk at phk.freebsd.dk
Tue Feb 17 15:39:06 EST 2009


In message <20090217.133212.-828392962.imp at bsdimp.com>, "M. Warner Losh" writes

:

>In message: <F21E028C02794C7BB61111CBA28E2EB6 at grendel>

> "Gerard Ashton" <ashtongj at comcast.net> writes:

>: Concatenate the "epoch" time at the time this ID value is being

>: generated ; the "epoch" time is the number of seconds elapsed since

>: 00:00:00 Coordinated Universal Time (UTC) January 01,

>

>I think it would be better to define this in a different way. It

>should be defined more like:

>

> ((year - 1970) * 365 + ((year - 1969) / 4) + day_of_year) * 86400 +

> hour * 3600 + min * 60 + sec


It would have been even better to write:

An ISO C "time_t" timestamp.

Poul-Henning

--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.


More information about the LEAPSECS mailing list