1DIFFTIME(P)                POSIX Programmer's Manual               DIFFTIME(P)
2
3
4

NAME

6       difftime - compute the difference between two calendar time values
7

SYNOPSIS

9       #include <time.h>
10
11       double difftime(time_t time1, time_t time0);
12
13

DESCRIPTION

15       The difftime() function shall compute the difference between two calen‐
16       dar times (as returned by time()): time1- time0.
17

RETURN VALUE

19       The difftime() function shall return the difference expressed  in  sec‐
20       onds as a type double.
21

ERRORS

23       No errors are defined.
24
25       The following sections are informative.
26

EXAMPLES

28       None.
29

APPLICATION USAGE

31       None.
32

RATIONALE

34       None.
35

FUTURE DIRECTIONS

37       None.
38

SEE ALSO

40       asctime()  ,  clock()  ,  ctime() , gmtime() , localtime() , mktime() ,
41       strftime() , strptime() , time() , utime() , the Base Definitions  vol‐
42       ume of IEEE Std 1003.1-2001, <time.h>
43
45       Portions  of  this text are reprinted and reproduced in electronic form
46       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
47       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
48       Specifications Issue 6, Copyright (C) 2001-2003  by  the  Institute  of
49       Electrical  and  Electronics  Engineers, Inc and The Open Group. In the
50       event of any discrepancy between this version and the original IEEE and
51       The  Open Group Standard, the original IEEE and The Open Group Standard
52       is the referee document. The original Standard can be  obtained  online
53       at http://www.opengroup.org/unix/online.html .
54
55
56
57IEEE/The Open Group                  2003                          DIFFTIME(P)
Impressum