stime(2)
stime -- set time
Synopsis
#include <unistd.h>
int stime(const time_t
tp
);
Description
stime
sets the system's idea of the time and date.
tp
points to the value of time as measured in seconds from 00:00:00 UTC January 1, 1970.
Return values
On success,
stime
returns 0. On failure,
stime
returns -1 and sets
errno
to identify the error.
Errors
In the following conditions,
stime
fails and sets
errno
to:
EPERM
The calling process does not have the appropriate privilege (
P_SYSOPS
).
References
adjtime
(2)
,
gettimeofday
(2)
,
time
(2)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.