summaryrefslogtreecommitdiffstats
path: root/man3/difftime.3
blob: e0b35fa89f27b923dc0b723556639a29c5e0e653 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
.\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
.\" May be distributed under the GNU General Public License
.\" References consulted:
.\"     Linux libc source code
.\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
.\"     386BSD man pages
.\" Modified Sat Jul 24 19:48:17 1993 by Rik Faith (faith@cs.unc.edu)
.TH DIFFTIME 3  "July 2, 1993" "GNU" "Linux Programmer's Manual"
.SH NAME
difftime \- calculate time difference
.SH SYNOPSIS
.nf
.B #include <time.h>
.sp
.BI "double difftime(time_t " time1 ", time_t " time0 );
.fi
.SH DESCRIPTION
The \fBdifftime()\fP function returns the number of seconds elapsed
between time \fItime1\fP and time \fItime0\fP.  The two times are 
specified in calendar time, which represents the time elapsed since
00:00:00 on January 1, 1970, Coordinated Universal Time (UTC).
.SH "CONFORMING TO"
SVID 3, BSD 4.3, ISO 9899
.SH SEE ALSO
.BR date "(1), " gettimeofday "(2), " time (2),
.BR ctime "(3), " gmtime "(3), " localtime (3)