DIFFTIME(3) Library Functions Manual DIFFTIME(3)
NAME
difftime — compute
the difference between two calendar time values
SYNOPSIS
#include <time.h> double difftime(time_t time1, time_t time0);
DESCRIPTION
The difftime() function computes the difference between two calendar times (as returned by time(3) ): time1 - time0 .
RETURN VALUE
The difftime() function returns the difference expressed in seconds as a type double .
ERRORS
No errors are defined.
EXAMPLES
None.
APPLICATION USAGE
None.
FUTURE DIRECTIONS
None.
SEE ALSO
asctime(3) , clock(3) , ctime(3) , gmtime(3) , localtime(3) , mktime(3) , strftime(3) , strptime(3) , time(3) , utime(3) , <time.h> .
DERIVATION
Derived from the ISO C standard.
February 1997 posix.fail