Lines Matching refs:time
2 * rtcwake -- enter a system sleep state until specified wakeup time.
9 * and leave it no later than a specified time. It uses any RTC framework
21 * time in UTC. Use the "-l" flag to tell this program that the system
55 /* The wakeup time is in POSIX time (more or less UTC).
56 * Ideally RTCs use that same time; but PCs can't do that
62 * Else mode is local so the time given to the RTC
63 * will instead use the local time zone.
67 wake.time.tm_sec = ptm->tm_sec;
68 wake.time.tm_min = ptm->tm_min;
69 wake.time.tm_hour = ptm->tm_hour;
70 wake.time.tm_mday = ptm->tm_mday;
71 wake.time.tm_mon = ptm->tm_mon;
72 wake.time.tm_year = ptm->tm_year;
74 wake.time.tm_wday = -1;
75 wake.time.tm_yday = -1;
76 wake.time.tm_isdst = -1;
82 xioctl(fd, RTC_ALM_SET, &wake.time);
124 "time\0" Required_argument "t"
139 /* alarm time, seconds-to-sleep (relative) */
142 /* alarm time, time_t (absolute, seconds since 1/1 1970 UTC) */
146 bb_error_msg_and_die("must provide wake time");
160 /* relative or absolute alarm time, normalized to time_t */
161 sys_time = time(NULL);
171 bb_error_msg_and_die("time doesn't go backward to %s", ctime(&alarm_time));