Content-type: text/html Man page of difftime

difftime

Section: C Library Functions (3)
Index Return to Main Contents
 

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 standards as follows:

difftime():  XPG4, XPG4-UNIX

Refer to the standards(5) reference page for more information about industry 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, expressed in seconds, that is the difference between the values of parameters time1 and time2.  

RELATED INFORMATION

Functions: ctime(3), time(3), timezone(3)

Standards: standards(5) delim off


 

Index

NAME
LIBRARY
SYNOPSIS
STANDARDS
PARAMETERS
DESCRIPTION
NOTES
RETURN VALUES
RELATED INFORMATION

This document was created by man2html, using the manual pages.
Time: 02:42:37 GMT, October 02, 2010