stime
Synopsis
#define _SVID_SOURCE
#include <time.h> |
int
stime
(time_t
*t);
Description
If the process has appropriate privilege, the stime
function shall set the system's idea of the time and date.
Time, referenced by t, is measured in seconds
from the epoch (defined in
ISO POSIX (2003) as 00:00:00 UTC January 1, 1970).
Return Value
On success, stime
shall return
0.
Otherwise, stime
shall return
-1 and
errno shall be set to indicate the error.
Errors
EPERM
The process does not have appropriate privilege.
EINVAL
t is a null pointer.