1STIME(2) Linux Programmer's Manual STIME(2)
2
3
4
6 stime - set time
7
9 #include <time.h>
10
11 int stime(time_t *t);
12
13 Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
14
15 stime(): _SVID_SOURCE
16
18 stime() sets the system's idea of the time and date. The time, pointed
19 to by t, is measured in seconds since the Epoch, 1970-01-01 00:00:00
20 +0000 (UTC). stime() may be executed only by the superuser.
21
23 On success, zero is returned. On error, -1 is returned, and errno is
24 set appropriately.
25
27 EFAULT Error in getting information from user space.
28
29 EPERM The calling process has insufficient privilege. Under Linux the
30 CAP_SYS_TIME privilege is required.
31
33 SVr4.
34
36 date(1), settimeofday(2), capabilities(7)
37
39 This page is part of release 3.53 of the Linux man-pages project. A
40 description of the project, and information about reporting bugs, can
41 be found at http://www.kernel.org/doc/man-pages/.
42
43
44
45Linux 2010-02-25 STIME(2)