HP-UX Reference (11i v1 00/12) - 2 System Calls (vol 5)

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man2/!!!intro.2
________________________________________________________________
___ ___
s
stime(2) stime(2)
NAME
stime() - set time and date
SYNOPSIS
#include <time.h>
int stime(const time_t *tp);
DESCRIPTION
The stime() 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).
RETURN VALUE
stime() returns the following values:
0 Successful completion.
-1 Failure. errno is set to indicate the error.
ERRORS
If stime() fails, errno is set to one of the following values.
[EPERM] The effective user ID of the calling process is not superuser.
SEE ALSO
date(1), gettimeofday(2), time(2).
STANDARDS CONFORMANCE
stime(): SVID2, SVID3, XPG2
Section 2386 1 HP-UX Release 11i: December 2000
___
___