stime() — set time and date
int stime(const time_t *tp);
system call sets the system time and date.
points to the value of time as
measured in seconds from 00:00:00 on January 1, 1970,
Coordinated Universal Time (UTC).
Some or all of the actions associated with this system call require the
Processes owned by the superuser will have this privilege.
Processes owned by other users may have this privilege, depending on system
for more information about privileged access on
systems that support fine-grained privileges.
returns the following values:
is set to indicate the error.
is set to one of the following values.
The calling process does not have the
parameter points to an invalid (negative) time value.
parameter is an invalid address.
stime(): SVID2, SVID3, XPG2