I read:
"difftime()" is a C++ function which serves a similar purpose.
quoting from the manual page: . .
This function is required by ANSI C. On a POSIX system, time_t is an arithmetic type, and one could just define
#define difftime(t1,t0) (double)(t1 - t0)
when the possible overflow in the subtraction is not a concern. On other systems, the data type time_t might use some other encoding where subtraction doesn't work directly.
. .
the two times have to be in epoch anyway so I guess you could get away with a [-] object.
regards,
x