time(2)
_________________________________________________________________
time System Call
Get time.
_________________________________________________________________
SYNTAX
#include <sys/types.h>
time_t time (seconds)
long * seconds;
PARAMETERS
seconds NULL or address of a longword to be set to the
current system time.
DESCRIPTION
Time returns the system's notion of the current Greenwich time as
the system call's return value.
If <seconds> is not NULL, the current time is also stored in the
longword at the location specified by <seconds>.
The time value returned is Greenwich time expressed in seconds
since midnight January 1, 1970.
ACCESS CONTROL
None.
RETURN VALUE
<current time> Completed successfully.
-1 An error occurred. Errno is set to indicate the
error.
EXCEPTIONS
Errno may be set to one of the following error codes:
DG/UX 4.00 Page 1
Licensed material--property of copyright holder(s)
time(2)
EFAULT Time will fail if <seconds> points to an illegal
address.
SEE ALSO
The related manual section: stime(2).
DG/UX 4.00 Page 2
Licensed material--property of copyright holder(s)