Lines Matching defs:tm
36 int clock_get_hwclock(struct tm *tm) {
39 assert(tm);
45 /* This leaves the timezone fields of struct tm
47 if (ioctl(fd, RTC_RD_TIME, tm) < 0)
52 tm->tm_isdst = -1;
57 int clock_set_hwclock(const struct tm *tm) {
60 assert(tm);
66 if (ioctl(fd, RTC_SET_TIME, tm) < 0)
105 struct tm *tm;
110 assert_se(tm = localtime(&ts.tv_sec));
111 minutesdelta = tm->tm_gmtoff / 60;