stime(2) stime(2)
NAME
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), time(2)
Copyright 1994 Novell, Inc. Page 1