Content-type: text/html Man page of difftime

difftime

Section: Standard C Library Functions (3C)
Updated: 24 Jul 2002
Index Return to Main Contents
 

NAME

difftime - computes the difference between two calendar times  

SYNOPSIS

#include <time.h>

double difftime(time_t time1, time_t time0);  

DESCRIPTION

The difftime() function computes the difference between two calendar times.  

RETURN VALUES

The difftime() functions returns the difference (time1-time0) expressed in seconds as a double.  

USAGE

The difftime() function is provided because there are no general arithmetic properties defined for type time_t.  

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
Interface StabilityStandard
MT-LevelMT-Safe

 

SEE ALSO

ctime(3C), attributes(5), standards(5)


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUES
USAGE
ATTRIBUTES
SEE ALSO

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