stime(2)stime(2)NAMEstime() - set time and date
SYNOPSISDESCRIPTION
The system call sets the system time and date. tp points to the value
of time as measured in seconds from 00:00:00 on January 1, 1970, Coor‐
dinated Universal Time (UTC).
Security Restrictions
Some or all of the actions associated with this system call require the
privilege. Processes owned by the superuser will have this privilege.
Processes owned by other users may have this privilege, depending on
system configuration. See privileges(5) for more information about
privileged access on systems that support fine-grained privileges.
RETURN VALUE
returns the following values:
Successful completion.
Failure.
is set to indicate the error.
ERRORS
If fails, is set to one of the following values.
The calling process does not have the
privilege.
The parameter points to an invalid (negative) time
value.
The parameter is an invalid address.
SEE ALSOdate(1), gettimeofday(2), time(2), privileges(5).
STANDARDS CONFORMANCEstime(2)