Lines Matching refs:tm
70 void qemu_get_timedate(struct tm *tm, time_t offset) in qemu_get_timedate() argument
79 gmtime_r(&ti, tm); in qemu_get_timedate()
82 localtime_r(&ti, tm); in qemu_get_timedate()
87 time_t qemu_timedate_diff(struct tm *tm) in qemu_timedate_diff() argument
94 seconds = mktimegm(tm); in qemu_timedate_diff()
98 struct tm tmp = *tm; in qemu_timedate_diff()
113 struct tm tm; in configure_rtc_base_datetime() local
115 if (sscanf(startdate, "%d-%d-%dT%d:%d:%d", &tm.tm_year, &tm.tm_mon, in configure_rtc_base_datetime()
116 &tm.tm_mday, &tm.tm_hour, &tm.tm_min, &tm.tm_sec) == 6) { in configure_rtc_base_datetime()
119 &tm.tm_year, &tm.tm_mon, &tm.tm_mday) == 3) { in configure_rtc_base_datetime()
120 tm.tm_hour = 0; in configure_rtc_base_datetime()
121 tm.tm_min = 0; in configure_rtc_base_datetime()
122 tm.tm_sec = 0; in configure_rtc_base_datetime()
126 tm.tm_year -= 1900; in configure_rtc_base_datetime()
127 tm.tm_mon--; in configure_rtc_base_datetime()
128 rtc_start_datetime = mktimegm(&tm); in configure_rtc_base_datetime()