Searched refs:tm (Results 1 - 14 of 14) sorted by relevance

/systemd/src/basic/
H A Dclock-util.h27 int clock_get_hwclock(struct tm *tm);
28 int clock_set_hwclock(const struct tm *tm);
H A Dclock-util.c36 int clock_get_hwclock(struct tm *tm) { argument
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) { argument
60 assert(tm);
66 if (ioctl(fd, RTC_SET_TIME, tm) <
105 struct tm *tm; local
[all...]
H A Dtime-util.c192 struct tm tm; local
203 localtime_or_gmtime_r(&sec, &tm, utc);
206 k = strftime(buf, l, "%a %Y-%m-%d %H:%M:%S", &tm);
208 k = strftime(buf, l, "%a %Y-%m-%d %H:%M:%S %Z", &tm);
214 if (strftime(buf + strlen(buf), l - strlen(buf), " %Z", &tm) <= 0)
465 struct tm tm, copy; local
540 assert_se(localtime_or_gmtime_r(&x, &tm, utc));
541 tm
1096 mktime_or_timegm(struct tm *tm, bool utc) argument
1100 localtime_or_gmtime_r(const time_t *t, struct tm *tm, bool utc) argument
[all...]
H A Dtime-util.h116 #define xstrftime(buf, fmt, tm) \
117 assert_message_se(strftime(buf, ELEMENTSOF(buf), fmt, tm) > 0, \
122 time_t mktime_or_timegm(struct tm *tm, bool utc);
123 struct tm *localtime_or_gmtime_r(const time_t *t, struct tm *tm, bool utc);
H A Dcalendarspec.c934 static bool tm_out_of_bounds(const struct tm *tm, bool utc) { argument
935 struct tm t;
936 assert(tm);
938 t = *tm;
945 t.tm_year != tm->tm_year ||
946 t.tm_mon != tm->tm_mon ||
947 t.tm_mday != tm->tm_mday ||
948 t.tm_hour != tm->tm_hour ||
949 t.tm_min != tm
953 matches_weekday(int weekdays_bits, const struct tm *tm, bool utc) argument
968 find_next(const CalendarSpec *spec, struct tm *tm, usec_t *usec) argument
1064 struct tm tm; local
[all...]
H A Dlog.c406 struct tm *tm; local
414 tm = localtime(&t);
415 if (!tm)
418 if (strftime(header_time, sizeof(header_time), "%h %e %T ", tm) <= 0)
/systemd/src/timedate/
H A Dtimedated.c296 struct tm tm; local
300 zero(tm);
301 r = clock_get_hwclock(&tm);
311 t = (usec_t) timegm(&tm) * USEC_PER_SEC;
393 struct tm *tm; local
397 assert_se(tm = localtime(&ts.tv_sec));
398 clock_set_hwclock(tm);
458 struct tm t local
484 struct tm *tm; local
508 struct tm* tm; local
[all...]
H A Dtimedatectl.c84 struct tm tm; local
113 xstrftime(a, "%a %Y-%m-%d %H:%M:%S %Z", localtime_r(&sec, &tm));
116 xstrftime(a, "%a %Y-%m-%d %H:%M:%S UTC", gmtime_r(&sec, &tm));
127 xstrftime(a, "%a %Y-%m-%d %H:%M:%S", gmtime_r(&rtc_sec, &tm));
133 xstrftime(a, "%Z, %z", localtime_r(&sec, &tm));
/systemd/src/machine/
H A Dmachine-dbus.c640 _cleanup_(sd_bus_message_unrefp) sd_bus_message *reply = NULL, *tm = NULL;
722 &tm,
732 r = sd_bus_message_append(tm, "ss", unit, "fail");
737 r = sd_bus_message_open_container(tm, 'a', "(sv)");
742 r = sd_bus_message_append(tm,
759 r = sd_bus_message_append(tm, "(sv)", "User", "s", isempty(user) ? "root" : user);
764 r = sd_bus_message_open_container(tm, 'r', "sv");
768 r = sd_bus_message_append(tm, "s", "Environment");
772 r = sd_bus_message_open_container(tm, 'v', "as");
776 r = sd_bus_message_append_strv(tm, en
[all...]
/systemd/src/import/
H A Dcurl-util.c420 struct tm tm; local
431 e = strptime_l(t, "%a, %d %b %Y %H:%M:%S %Z", &tm, loc);
434 e = strptime_l(t, "%A, %d-%b-%y %H:%M:%S %Z", &tm, loc);
437 e = strptime_l(t, "%a %b %d %H:%M:%S %Y", &tm, loc);
442 v = timegm(&tm);
/systemd/src/journal/
H A Djournald-syslog.c138 struct tm *tm; local
155 tm = localtime(&t);
156 if (!tm)
158 if (strftime(header_time, sizeof(header_time), "%h %e %T ", tm) <= 0)
/systemd/src/shared/
H A Dlogs-show.c330 struct tm tm; local
331 struct tm *(*gettime_r)(const time_t *, struct tm *);
349 r = strftime(buf, sizeof(buf), "%Y-%m-%dT%H:%M:%S%z", gettime_r(&t, &tm));
352 r = strftime(buf, sizeof(buf), "%b %d %H:%M:%S", gettime_r(&t, &tm));
358 r = strftime(buf, sizeof(buf), "%b %d %H:%M:%S", gettime_r(&t, &tm));
/systemd/src/resolve/
H A Dresolved-dns-rr.c737 struct tm tm; local
742 if (!gmtime_r(&sec, &tm))
745 if (strftime(buf, l, "%Y%m%d%H%M%S", &tm) <= 0)
/systemd/src/systemctl/
H A Dsystemctl.c6948 struct tm tm = {}; local
6964 assert_se(localtime_r(&s, &tm));
6966 tm.tm_hour = (int) hour;
6967 tm.tm_min = (int) minute;
6968 tm.tm_sec = 0;
6970 assert_se(s = mktime(&tm));

Completed in 2745 milliseconds