BSD 4_2 development
[unix-history] / usr / man / man3 / time.3f
CommitLineData
3b9e8f30
C
1.TH TIME 3F "13 June 1983"
2.UC 4
3.SH NAME
4time, ctime, ltime, gmtime \- return system time
5.SH SYNOPSIS
6.B integer function time()
7.sp 1
8.B character*(*) function ctime (stime)
9.br
10.B integer stime
11.sp 1
12.B subroutine ltime (stime, tarray)
13.br
14.B integer stime, tarray(9)
15.sp 1
16.B subroutine gmtime (stime, tarray)
17.br
18.B integer stime, tarray(9)
19.SH DESCRIPTION
20.I Time
21returns the time since 00:00:00 GMT, Jan. 1, 1970, measured in seconds.
22This is the value of the UNIX system clock.
23.PP
24.I Ctime
25converts a system time to a 24 character ASCII string.
26The format is described under
27.IR ctime (3).
28No 'newline' or NULL will be included.
29.PP
30.I Ltime
31and
32.I gmtime
33disect a UNIX time into month, day, etc., either for the local time zone
34or as GMT.
35The order and meaning of each element returned in
36.I tarray
37is described under
38.IR ctime (3).
39.SH FILES
40.ie \nM /usr/ucb/lib/libU77.a
41.el /usr/lib/libU77.a
42.SH "SEE ALSO"
43ctime(3), itime(3F), idate(3F), fdate(3F)