ANSI standard for difftime()

Doug Gwyn gwyn at smoke.BRL.MIL
Fri Jul 7 02:22:18 AEST 1989


In article <4400002 at tdpvax> scott at tdpvax.UUCP writes:
>double difftime(time_t time2, time_t time1);
>and it returns time2 - time1.
>My question is can this value be negative?  Since elapsed time is normally
>a positive value.

The proposed Standard does not talk about "elapsed time".  difftime()
computes the difference between two calendar times.  Obviously the
difference can be negative.



More information about the Comp.lang.c mailing list