Path: utzoo!yunexus!geac!syntron!jtsv16!uunet!auspex!guy From: guy@auspex.UUCP (Guy Harris) Newsgroups: comp.lang.c Subject: Re: Seconds from 19xx to Date (and visa versa) Message-ID: <352@auspex.UUCP> Date: 29 Oct 88 05:22:00 GMT Article-I.D.: auspex.352 References: <5522@hoptoad.uucp> <10030@socslgw.csl.sony.JUNET> <340@auspex.UUCP> <7685@boring.cwi.nl> Reply-To: guy@auspex.UUCP (Guy Harris) Organization: Auspex Systems, Santa Clara Lines: 30 >...I propose that we define the time kept by Unix as follows: > > time = ( > (number of whole years since the epoch) * 365 > + > (number of leap days since the epoch) > ) > * > 24*3600 > + > (number of seconds since 00:00 this morning). If you change that to: time = ( (number of whole years since the epoch) * 365 + (number of leap days since the epoch) + (number of days since the first day of this year) ) * 24*3600 + (number of seconds since 00:00 this morning). (or perform some equivalent transformation, so UNIX doesn't think it's always January 1) I'd vote for that, especially since, as I understand it, it's precisely what POSIX specifies (traditional UNIX time, no leap-second correction).