Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ difftime(3C) — Sun WorkShop 3.0.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ctime(3V)

difftime(3C)  —  COMPATIBILITY FUNCTIONS

NAME

difftime − computes the difference between two calendar times

SYNOPSIS

#include <time.h>

double difftime(time_t time1, time_t time0);

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(3V)

NOTES

The unbundled ANSI C compiler provides ANSI versions of most of the system header files, which are used automatically at compile time. For example, the directive
#include <stdio.h> will use the file provided by this compiler, rather than /usr/include/stdio.h. 

Sun Release 4.1  —  Last change: 21 June 1994

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026