Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
Standard C Library Functionsdifftime(3C)


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
MT-LevelMT-Safe

SEE ALSO

 

ctime(3C), attributes(5)


SunOS 5.9Go To TopLast Changed 29 Dec 1996

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.