1STIME(2)                   Linux Programmer's Manual                  STIME(2)
2
3
4

NAME

6       stime - set time
7

SYNOPSIS

9       #include <time.h>
10
11       int stime(const time_t *t);
12
13   Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
14
15       stime():
16           Since glibc 2.19:
17               _DEFAULT_SOURCE
18           Glibc 2.19 and earlier:
19               _SVID_SOURCE
20

DESCRIPTION

22       stime() sets the system's idea of the time and date.  The time, pointed
23       to by t, is measured in seconds since the  Epoch,  1970-01-01  00:00:00
24       +0000 (UTC).  stime() may be executed only by the superuser.
25

RETURN VALUE

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

ERRORS

31       EFAULT Error in getting information from user space.
32
33       EPERM  The calling process has insufficient  privilege.   Under  Linux,
34              the CAP_SYS_TIME privilege is required.
35

CONFORMING TO

37       SVr4.
38

SEE ALSO

40       date(1), settimeofday(2), capabilities(7)
41

COLOPHON

43       This  page  is  part of release 4.15 of the Linux man-pages project.  A
44       description of the project, information about reporting bugs,  and  the
45       latest     version     of     this    page,    can    be    found    at
46       https://www.kernel.org/doc/man-pages/.
47
48
49
50Linux                             2016-03-15                          STIME(2)
Impressum