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

  man pages->Tru64 Unix man pages -> stime (3)              
Title
Content
Arch
Section
 

stime(3)

Contents


NAME    [Toc]    [Back]

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

SYNOPSIS    [Toc]    [Back]

       #include <sys/time.h>

       int stime(
               long *tz );

LIBRARY    [Toc]    [Back]

       Standard C Library (libc)

PARAMETERS    [Toc]    [Back]

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

DESCRIPTION    [Toc]    [Back]

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

RETURN VALUES    [Toc]    [Back]

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

ERRORS    [Toc]    [Back]

       If  the stime() function fails, errno is set to one of the
       following values: The calling process does  not  have  the
       appropriate system privilege.

SEE ALSO    [Toc]    [Back]

      
      
       Functions: gettimeofday(2), gettimer(3)



                                                         stime(3)
[ Back ]
 Similar pages
Name OS Title
setclock Tru64 Set value of system-wide clock
getclock Tru64 Get current value of system-wide clock
hardclock OpenBSD real-time system clock
resettodr NetBSD set battery-backed clock from system time
resettodr OpenBSD set battery-backed clock from system time
adjtime IRIX correct the time to allow synchronization of the system clock
resettodr FreeBSD set battery-backed clock from system time
adjtime HP-UX correct the time to synchronize the system clock
adjtime Tru64 Correct the time to allow synchronization of the system clock
adjtime OpenBSD correct the time to allow synchronization of the system clock
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service