1time(2)                          System Calls                          time(2)
2
3
4

NAME

6       time - get time
7

SYNOPSIS

9       #include <sys/types.h>
10       #include <time.h>
11
12       time_t time(time_t *tloc);
13
14

DESCRIPTION

16       The time() function returns the value of time in seconds since 00:00:00
17       UTC, January 1, 1970.
18
19
20       If tloc is non-zero, the return value is also stored in the location to
21       which  tloc  points. If tloc points to an illegal address, time() fails
22       and its actions are undefined.
23

RETURN VALUES

25       Upon successful completion, time() returns the value  of  time.  Other‐
26       wise, (time_t)−1 is returned and errno is set to indicate the error.
27

ATTRIBUTES

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

SEE ALSO

43       stime(2), ctime(3C), attributes(5), standards(5)
44
45
46
47SunOS 5.11                        28 Dec 1996                          time(2)
Impressum