Penguin
Annotated edit history of time(2) version 1, including all changes. View license author blame.
Rev Author # Line
1 perry 1 TIME
2 !!!TIME
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 RETURN VALUE
7 ERRORS
8 NOTES
9 CONFORMING TO
10 SEE ALSO
11 ----
12 !!NAME
13
14
15 time - get time in seconds
16 !!SYNOPSIS
17
18
19 __#include __
20
21
22 __time_t time(time_t *__''t''__);__
23 !!DESCRIPTION
24
25
26 __time__ returns the time since the Epoch (00:00:00 UTC,
27 January 1, 1970), measured in seconds.
28
29
30 If ''t'' is non-NULL, the return value is also stored in
31 the memory pointed to by ''t''.
32 !!RETURN VALUE
33
34
35 On success, the value of time in seconds since the Epoch is
36 returned. On error, ((time_t)-1) is returned, and
37 ''errno'' is set appropriately.
38 !!ERRORS
39
40
41 __EFAULT__
42
43
44 ''t'' points outside your accessible address
45 space.
46 !!NOTES
47
48
49 POSIX.1 defines ''seconds since the Epoch'' as a value to
50 be interpreted as the number of seconds between a specified
51 time and the Epoch, according to a formula for conversion
52 from UTC equivalent to conversion on the na
53 ''
54 !!CONFORMING TO
55
56
57 SVr4, SVID, POSIX, X/OPEN, BSD 4.3
58 Under BSD 4.3, this call is obsoleted by
59 gettimeofday(2). POSIX does not specify any error
60 conditions.
61 !!SEE ALSO
62
63
64 ctime(3), date(1), ftime(3),
65 gettimeofday(2)
66 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.