Article View: comp.std.c
Article #5410Re: The type of time_t (was: struct tm -> time_t converter wanted)
From: Guy Harris
Date: Fri, 28 Oct 1988 00:00
Date: Fri, 28 Oct 1988 00:00
12 lines
1312 bytes
1312 bytes
>With the Epoch defined as it is for Unix (Jan 1 00:00:00, 1970), it is >desireable to have a signed `time_t' type. Although I didn't, the world >did exist before 1970. The world also existed before whatever 1902 or so; having "time_t" be signed will help only to a limited degree. If you want a type to be used for time-stamping arbitrary events in the past and the future, "time_t" on UNIX systems isn't going to be it no matter whether it's signed or unsigned, unless you make it bigger than 32 bits (in which case signedness will probably be irrelevant). However, "time_t" is generally used to time-stamp events occurring on a UNIX machine, and there were relatively few of them around before 1970....
Technical Details
Message-ID:
<334@auspex.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!cornell!batcomputer!itsgw!steinmetz!uunet!auspex!guyReferences:
<442@grand.UUCP> <8700@smoke.BRL.MIL> <6964@cdis-1.uucp> <9816@haddock.ima.isc.com> <1988Oct22.230215.19411@utzoo.uucp> <26582@ucbvax.BERKELEY.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!cornell!batcomputer!itsgw!steinmetz!uunet!auspex!guy From: guy@auspex.UUCP (Guy Harris) Newsgroups: comp.std.c Subject: Re: The type of time_t (was: struct tm -> time_t converter wanted) Message-ID: <334@auspex.UUCP> Date: 28 Oct 88 00:00:29 GMT References: <442@grand.UUCP> <8700@smoke.BRL.MIL> <6964@cdis-1.uucp> <9816@haddock.ima.isc.com> <1988Oct22.230215.19411@utzoo.uucp> <26582@ucbvax.BERKELEY.EDU> Reply-To: guy@auspex.UUCP (Guy Harris) Organization: Auspex Systems, Santa Clara Lines: 12