1time_t(3type)                                                    time_t(3type)
2
3
4

NAME

6       time_t, suseconds_t, useconds_t - integer time
7

LIBRARY

9       Standard C library (libc)
10

SYNOPSIS

12       #include <time.h>
13
14       typedef /* ... */  time_t;
15
16       #include <sys/types.h>
17
18       typedef /* ... */  suseconds_t;
19       typedef /* ... */  useconds_t;
20

DESCRIPTION

22       time_t Used  for time in seconds.  According to POSIX, it is an integer
23              type.
24
25       suseconds_t
26              Used for time in microseconds.  It is a signed integer type  ca‐
27              pable of storing values at least in the range [-1, 1000000].
28
29       useconds_t
30              Used  for  time in microseconds.  It is an unsigned integer type
31              capable of storing values at least in the range [0, 1000000].
32

STANDARDS

34       time_t C11, POSIX.1-2008.
35
36       suseconds_t
37       useconds_t
38              POSIX.1-2008.
39

HISTORY

41       time_t C89, POSIX.1-2001.
42
43       suseconds_t
44       useconds_t
45              POSIX.1-2001.
46
47       <sched.h> defines time_t since POSIX.1-2008.
48
49       POSIX.1-2001 defined useconds_t in <unistd.h> too.
50

NOTES

52       On some architectures, the width of time_t can be controlled  with  the
53       feature test macro _TIME_BITS.
54
55       The  following  headers  also  provide  time_t: <sched.h>, <sys/msg.h>,
56       <sys/select.h>, <sys/sem.h>, <sys/shm.h>,  <sys/stat.h>,  <sys/time.h>,
57       <sys/types.h>, and <utime.h>.
58
59       The  following  headers  also  provide  suseconds_t: <sys/select.h> and
60       <sys/time.h>.
61

SEE ALSO

63       stime(2), time(2), ctime(3), difftime(3), usleep(3), timeval(3type)
64
65
66
67Linux man-pages 6.05              2023-03-31                     time_t(3type)
Impressum