🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1194

Re: Change to time() fn?

#1194
From: Karl Heuer
Date: Sat, 12 Sep 1992 04:27
16 lines
1278 bytes
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
Technical Details
Message-ID: <1992Sep12.042747.26773@ima.isc.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!sdd.hp.com!think.com!spdcc!dirtydog.ima.isc.com!karl
References: <1992Sep11.194827.19500@iqsc.COM>

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c
Path: arc1-ca.pugleaf.net!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