STIME(S) XENIX System V STIME(S)
Name
stime - Sets the time.
Syntax
#include <sys/types.h>
#include <sys/timeb.h>
int stime (tp)
long *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 GMT January 1, 1970.
stime will fail if the effective user ID of the calling
process is not super-user. [EPERM]
Return Value
Upon successful completion, a value of 0 is returned.
Otherwise, a value of -1 is returned and errno is set to
indicate the error.
See Also
time(S)
Page 1 (printed 8/7/87)