.\" 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 .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)