[LEAPSECS] A new use for Pre-1972 UTC
M. Warner Losh
imp at bsdimp.com
Tue Feb 17 15:32:12 EST 2009
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
Since that's what they mean. Jan 1 is day 0, Jan 5 is day 4, etc.
Warner
More information about the LEAPSECS
mailing list