Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Reference > s

stime(2)

HP-UX 11i Version 1: September 2005
» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

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.

STANDARDS CONFORMANCE

stime(): SVID2, SVID3, XPG2

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2005 Hewlett-Packard Development Company, L.P.