Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

date(1)

gettimeofday(2)

time(2)

stime(2)

NAME

stime − set time and date

SYNOPSIS

#include <time.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 (Coordinated Universal Time) January 1, 1970. 

RETURN VALUE

Upon successful completion, stime() returns a value of 0; otherwise, a value of −1 is returned and errno is set to indicate the error. 

ERRORS

[EPERM] stime() fails if the effective user ID of the calling process is not super-user. 

DEPENDENCIES

HP Clustered Environment
On systems that are members of a cluster, setting the time sets the time and date for all systems in the cluster.

SEE ALSO

date(1), gettimeofday(2), time(2). 

STANDARDS CONFORMANCE

stime(): SVID2, XPG2

Hewlett-Packard Company  —  HP-UX Release 9.0: August 1992

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