[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    stime(2) manual page Table of Contents

Name

stime - set system time and date

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

Upon successful completion, a value of 0 is returned. Otherwise, a value of -1 is returned and errno is set to indicate the error.

Errors

stime() will fail if:

EPERM
The effective user of the calling process is not super-user.

See Also

time(2)


Table of Contents