stime(3) [ultrix man page]
stime(3) Library Functions Manual stime(3) Name stime - set time Syntax int stime (tp) long *tp; Description The system call sets the system's time and date. The tp argument points to the value of time as measured in seconds from 00:00:00 GMT Jan- uary 1, 1970. Return Values Upon successful completion, a value of zero (0) is returned. Otherwise, a value of -1 is returned and errno is set to indicate the error. Diagnostics [EPERM] The effective user ID of the calling process is not the superuser. See Also gettimeofday(2), time(3) stime(3)
Check Out this Related Man Page
stime(2) System Calls Manual stime(2) NAME
stime() - set time and date SYNOPSIS
DESCRIPTION
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, Coordinated 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 privi- lege. 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 ALSO
date(1), gettimeofday(2), time(2), privileges(5). STANDARDS CONFORMANCE
stime(2)