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

  man pages->Linux man pages -> stime (2)              
Title
Content
Arch
Section
 

STIME(2)

Contents


NAME    [Toc]    [Back]

       stime - set time

SYNOPSIS    [Toc]    [Back]

       #define _SVID_SOURCE /* glibc2 needs this */
       #include <time.h>

       int stime(time_t *t);

DESCRIPTION    [Toc]    [Back]

       stime sets the system's idea of the time and date.  Time, pointed to by
       t, is measured in seconds from 00:00:00 GMT January 1,  1970.   stime()
       may only be executed by the super user.

RETURN VALUE    [Toc]    [Back]

       On  success,  zero is returned.	On error, -1 is returned, and errno is
       set appropriately.

ERRORS    [Toc]    [Back]

       EPERM  The caller is not the super-user.

CONFORMING TO    [Toc]    [Back]

       SVr4, SVID, X/OPEN

NOTES    [Toc]    [Back]

       Under glibc2, <time.h> only provides a prototype when  _SVID_SOURCE  is
       defined.

SEE ALSO    [Toc]    [Back]

      
      
       date(1), settimeofday(2)




Linux 0.99.11			  1993-07-24			      STIME(2)
[ Back ]
 Similar pages
Name OS Title
vxfs_ifree_timelag HP-UX VxFS inode free time lag (specifies the minimum time to be spent on a freelist)
create_link HP-UX Creates a soft link and optionally specifies an expiration time and an extension time
adjkerntz FreeBSD adjust local time CMOS clock to reflect time zone changes and keep current timezone offset for the k...
ftime 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
TIMEVAL32TO64 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
gettimeofday64 Tru64 Gets and sets date and time and converts time between timeval and timeval64
gettimeofday Tru64 Gets and sets date and time and converts time between timeval and timeval64
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service