Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ stime(3) — Tru64 UNIX 5.1b

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

gettimeofday(2)

gettimer(3)

stime(3)  —  Subroutines

NAME

stime − Set the system-wide time-of-day clock

SYNOPSIS

#include <sys/time.h>
int stime(
        long ∗tz );

LIBRARY

Standard C Library (libc)

PARAMETERS

tzPoints to the value of time, to be interpreted as the number of seconds since 00:00:00 GMT on January 1, 1970. 

DESCRIPTION

The stime() function sets the time and date of the system. 

RETURN VALUES

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

ERRORS

If the stime() function fails, errno is set to one of the following values:

[EPERM]
The calling process does not have the appropriate system privilege.

SEE ALSO

Functions: gettimeofday(2), gettimer(3)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026