How to generate Unix time from dates?
Conor P. Cahill
cpcahil at virtech.uucp
Fri Oct 26 23:26:04 AEST 1990
In article <9X5%Q7*@ads.com> jtn at ADS.COM (John T. Nelson) writes:
>For a project I'm working on I'd like to generate an unsigned long
>which contains the time of day on Unix systems. This amounts to usec
>in the Unix time.h time_val struct I think.
The value returned by time(2) is the number of seconds (not microsecs) that
have past since 12 Midnight December 31, 1969 GMT. There is no way to use
this value to represent date/times prior to that date.
You will have to come up with a different mechanism to represent these
dates.
--
Conor P. Cahill (703)430-9247 Virtual Technologies, Inc.,
uunet!virtech!cpcahil 46030 Manekin Plaza, Suite 160
Sterling, VA 22170
More information about the Comp.unix.questions
mailing list