home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.std.c
- Path: sparky!uunet!wupost!sdd.hp.com!think.com!spdcc!dirtydog.ima.isc.com!karl
- From: karl@ima.isc.com (Karl Heuer)
- Subject: Re: Change to time() fn?
- Message-ID: <1992Sep12.042747.26773@ima.isc.com>
- Sender: usenet@ima.isc.com (news)
- Organization: Interactive Systems, Cambridge, MA 02138-5302
- References: <1992Sep11.194827.19500@iqsc.COM>
- Date: Sat, 12 Sep 1992 04:27:47 GMT
- Lines: 16
-
- In article <1992Sep11.194827.19500@iqsc.COM> matt@iquery.iqsc.COM (Matt Reedy) writes:
- >In looking at the Microsoft C 7.0 reference manual, we noticed the
- >time() function has changed its base value from 1/1/1970 to 12/31/1899.
- >Is this a Posix, ANSI, or other standards body change or is it Microsoft?
-
- ANSI doesn't specify that time() even *has* a "base value".
-
- POSIX says that it's measured in seconds since the Epoch, but since the
- number of seconds since 1899-12-31 is already more than the common value of
- LONG_MAX, I doubt that they've moved the Epoch backwards like that.
-
- Are you sure you're talking about the internal encoding of |time()|, and not
- the |struct tm| representation? (That *does* have an (unfortunate) base of
- 1900 for the |tm_year| component.)
-
- Karl W. Z. Heuer (karl@ima.isc.com or uunet!ima!karl), The Walking Lint
-