DOC HOME
SITE MAP
MAN PAGES
GNU INFO
SEARCH
PRINT BOOK
stime(S)
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
(S)
,
gettimeofday
(S)
,
time
(S)
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005