.TH stime() "" "" "System Call (libc)"
.PC "Set the time"
.B #include <sys/types.h>
\fBint stime(\fItimep\^\fB)\fR
\fBtime_t *\fItimep\^\fB;\fR
.PP
.B stime()
sets the system time.
.I timep
points to a variable of type
.BR time_t ,
which contains the number of seconds since
midnight GMT of January 1, 1970.
.PP
If all goes well,
.B stime()
zero.
If a problem occurs, it returns \-1.
.PP
.B stime()
is restricted to the superuser.
.SH Files
.B <sys/types.h>
.SH "See Also"
.Xr "ctime()," ctime
.Xr "date," date
.Xr "ftime()," ftime
.Xr "libc," libc
.Xr "stat()," stat
.Xr "utime()" utime
