In message <20090217.133212.-828392962....@bsdimp.com>, "M. Warner Losh" writes : >In message: <f21e028c02794c7bb61111cba28e2...@grendel> > "Gerard Ashton" <ashto...@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 p...@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. _______________________________________________ LEAPSECS mailing list LEAPSECS@leapsecond.com http://six.pairlist.net/mailman/listinfo/leapsecs