ANSI C.
Mark Brader
msb at lsuc.UUCP
Thu Jan 23 11:36:40 AEST 1986
> > difftime() accepts time_t arguments but returns a double.
> What's wrong with returning a long?
>
> What's wrong with having a function:
>
> long seconds(time)
> time_t time;
What's wrong is that some non-UNIX systems may wish to keep their
internal times based on an origin that is much earlier than UNIX's
start-of-1970-GMT. Then a time in seconds-since-origin won't fit
in a long.
Mark Brader
More information about the Comp.lang.c
mailing list