NAME
difftime — compute
the difference between two calendar time values
SYNOPSIS
#include
<time.h>
double difftime(time_t time1, time_t time0);
DESCRIPTION
[CX] The functionality described on this reference page is aligned with the ISO C standard. Any conflict between the requirements described here and the ISO C standard is unintentional. This volume of IEEE Std 1003.1-2001 (“POSIX.1”) defers to the ISO C standard.
The difftime () function shall compute the
difference between two calendar times (as returned by
time(3)): time 1- time
0.
RETURN VALUE
The difftime () function shall return the
difference expressed in seconds as a type
double.
ERRORS
No errors are defined.
EXAMPLES
None.
APPLICATION USAGE
None.
RATIONALE
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), the Base Definitions volume of IEEE Std 1003.1-2001 (“POSIX.1”), <time.h>
CHANGE HISTORY
First released in Issue 4. Derived from the ISO C standard.
End of informative text. footer end