*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->HP-UX 11i man pages -> stime (2)              
Title
Content
Arch
Section
 

Contents


 stime(2)                                                           stime(2)




 NAME    [Toc]    [Back]
      stime() - set time and date

 SYNOPSIS    [Toc]    [Back]
      #include <time.h>

      int stime(const time_t *tp);

 DESCRIPTION    [Toc]    [Back]
      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    [Toc]    [Back]
      stime() returns the following values:

            0   Successful completion.
           -1   Failure.  errno is set to indicate the error.

 ERRORS    [Toc]    [Back]
      If stime() fails, errno is set to one of the following values.

           [EPERM]        The effective user ID of the calling process is
                          not superuser.

           [EINVAL]       The tp parameter points to an invalid (negative)
                          time value.

           [EFAULT]       The tp parameter is an invalid address.

 SEE ALSO    [Toc]    [Back]
      date(1), gettimeofday(2), time(2).

 STANDARDS CONFORMANCE    [Toc]    [Back]
      stime(): SVID2, SVID3, XPG2


 Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003
[ Back ]
      
      
 Similar pages
Name OS Title
gettimeofday Tru64 Gets and sets date and time and converts time between timeval and timeval64
TIMEVAL64TO32 Tru64 Gets and sets date and time and converts time between timeval and timeval64
TIMEVAL32TO64 Tru64 Gets and sets date and time and converts time between timeval and timeval64
gettimeofday64 Tru64 Gets and sets date and time and converts time between timeval and timeval64
settimeofday Tru64 Gets and sets date and time and converts time between timeval and timeval64
settimeofday64 Tru64 Gets and sets date and time and converts time between timeval and timeval64
ftime Tru64 Gets and sets date and time and converts time between timeval and timeval64
ntp_gettime Tru64 Get the date, time, and kernel time error values
ntpdate Tru64 set the date and time via NTP (Network Time Protocol)
ntpdate FreeBSD set the date and time via NTP
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service