1difftime(3C)             Standard C Library Functions             difftime(3C)
2
3
4

NAME

6       difftime - computes the difference between two calendar times
7

SYNOPSIS

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

DESCRIPTION

15       The  difftime()  function computes the difference between two  calendar
16       times.
17

RETURN VALUES

19       The difftime() functions returns the difference (time1-time0) expressed
20       in seconds as a double.
21

USAGE

23       The difftime() function is provided because there are no general arith‐
24       metic properties defined for type time_t.
25

ATTRIBUTES

27       See attributes(5) for descriptions of the following attributes:
28
29
30
31
32       ┌─────────────────────────────┬─────────────────────────────┐
33       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
34       ├─────────────────────────────┼─────────────────────────────┤
35       │Interface Stability          │Standard                     │
36       ├─────────────────────────────┼─────────────────────────────┤
37       │MT-Level                     │MT-Safe                      │
38       └─────────────────────────────┴─────────────────────────────┘
39

SEE ALSO

41       ctime(3C), attributes(5), standards(5)
42
43
44
45SunOS 5.11                        24 Jul 2002                     difftime(3C)
Impressum