xref: /original-bsd/share/man/man3f/time.3 (revision c3e32dec)
Copyright (c) 1983, 1993
The Regents of the University of California. All rights reserved.

%sccs.include.proprietary.roff%

@(#)time.3 8.1 (Berkeley) 06/05/93

TIME 3F ""
C 5
NAME
time, ctime, ltime, gmtime - return system time
SYNOPSIS
integer function time() character*(*) function ctime (stime)

integer stime subroutine ltime (stime, tarray)

integer stime, tarray(9) subroutine gmtime (stime, tarray)

integer stime, tarray(9)

DESCRIPTION
Time returns the time since 00:00:00 GMT, Jan. 1, 1970, measured in seconds. This is the value of the UNIX system clock.

Ctime converts a system time to a 24 character ASCII string. The format is described under ctime (3). No 'newline' or NULL will be included.

Ltime and gmtime disect a UNIX time into month, day, etc., either for the local time zone or as GMT. The order and meaning of each element returned in tarray is described under ctime (3).

FILES
"SEE ALSO"
ctime(3), itime(3F), idate(3F), fdate(3F)