Manual Page Result
0
Command: difftime | Section: 3 | Source: Digital UNIX | File: difftime.3.gz
difftime(3) Library Functions Manual difftime(3)
NAME
difftime - Compares time values
LIBRARY
Standard C Library (libc.so, libc.a)
SYNOPSIS
#include <time.h>
double difftime(
time_t time1,
time_t time2);
STANDARDS
Interfaces documented on this reference page conform to industry stan-
dards as follows:
difftime(): XPG4, XPG4-UNIX
Refer to the standards(5) reference page for more information about in-
dustry standards and associated tags.
PARAMETERS
Specifies a time value expressed in seconds. Specifies a time value
expressed in seconds.
DESCRIPTION
The difftime() function returns a signed time value in seconds that is
the difference between the values of the time1 and time2 parameters,
also expressed in seconds.
NOTES
The difftime() function is supported for multithreaded applications.
RETURN VALUES
Upon successful completion the difftime() function returns a value, ex-
pressed in seconds, that is the difference between the values of para-
meters time1 and time2.
RELATED INFORMATION
Functions: ctime(3), time(3), timezone(3)
Standards: standards(5) delim off
difftime(3)