The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group

 NAME

difftime - compute the difference between two calendar time values

 SYNOPSIS



#include <time.h>

double difftime(time_t time1, time_t time0);

 DESCRIPTION

The difftime() function computes the difference between two calendar times (as returned by time()): time1 - time0.

 RETURN VALUE

The difftime() function returns the difference expressed in seconds as a type double.

 ERRORS

No errors are defined.

 EXAMPLES

None.

 APPLICATION USAGE

None.

 FUTURE DIRECTIONS

None.

 SEE ALSO

asctime(), clock(), ctime(), gmtime(), localtime(), mktime(), strftime(), strptime(), time(), utime(), <time.h>.

DERIVATION

Derived from the ISO C standard.

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]