Amiga Unix — 68040 · 68060

Manual pages › C library (3C)

difftime(3C)

computes the difference between two calendar times

From the original Amiga UNIX 2.1 manual. Some things it mentions may not be in this release.

NAME

difftime - computes the difference between two calendar times

SYNOPSIS

#include <time.h>

double difftime (time_t time1, time_t time0);

DESCRIPTION

difftime computes the difference between two calendar times. difftime returns the difference (time1-time0) expressed in seconds as a double. This function is provided because there are no general arithmetic properties defined for type time_t.

SEE ALSO

ctime(3C).