DIFFTIME(3) Library Functions Manual DIFFTIME(3)

difftimecompute the difference between two calendar time values

#include <time.h>

double difftime(time_t time1, time_t time0);

The difftime() function computes the difference between two calendar times (as returned by time(3) ): time1 - time0 .

The difftime() function returns the difference expressed in seconds as a type double .

No errors are defined.

None.

None.

None.

asctime(3) , clock(3) , ctime(3) , gmtime(3) , localtime(3) , mktime(3) , strftime(3) , strptime(3) , time(3) , utime(3) , <time.h> .

Derived from the ISO C standard.

February 1997 posix.fail