home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / std / c / 2613 < prev    next >
Encoding:
Text File  |  1992-09-11  |  1.2 KB  |  28 lines

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