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 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 POSIX.1-2017 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.

The difftime () function shall return the difference expressed in seconds as a type .

No errors are defined.

None.

None.

None.

None.

asctime(3), clock(3), ctime(3), gmtime(3), localtime(3), mktime(3), strftime(3), strptime(3), time(3), utime(3)

XBD <time.h>

First released in Issue 4. Derived from the ISO C standard.

January 31, 2018 posix.fail