Searched refs:tm_time (Results 1 – 8 of 8) sorted by relevance
/busybox-1.35.0/util-linux/ |
D | hwclock.c | 70 struct tm tm_time; in read_rtc() local 75 rtc_read_tm(&tm_time, fd); in read_rtc() 79 int before = tm_time.tm_sec; in read_rtc() 81 rtc_read_tm(&tm_time, fd); in read_rtc() 83 if (before != (int)tm_time.tm_sec) in read_rtc() 92 return rtc_tm2time(&tm_time, utc); in read_rtc() 204 struct tm tm_time; in from_sys_clock() local 212 gmtime_r((time_t*)&tv.tv_sec, &tm_time); in from_sys_clock() 214 localtime_r((time_t*)&tv.tv_sec, &tm_time); in from_sys_clock() 218 gmtime_r(&t, &tm_time); in from_sys_clock() [all …]
|
D | mkfs_vfat.c | 552 struct tm tm_time; in mkfs_vfat_main() 559 localtime_r(&create_time, &tm_time); in mkfs_vfat_main() 560 t = (tm_time.tm_sec >> 1) + (tm_time.tm_min << 5) + (tm_time.tm_hour << 11); in mkfs_vfat_main() 561 d = tm_time.tm_mday + ((tm_time.tm_mon+1) << 5) + ((tm_time.tm_year-80) << 9); in mkfs_vfat_main()
|
D | rtcwake.c | 185 struct tm tm_time; in rtcwake_main() local 186 rtc_read_tm(&tm_time, fd); in rtcwake_main() 187 rtc_time = rtc_tm2time(&tm_time, utc); in rtcwake_main()
|
/busybox-1.35.0/coreutils/ |
D | date.c | 166 struct tm tm_time; in date_main() local 265 localtime_r(&ts.tv_sec, &tm_time); in date_main() 271 tm_time.tm_sec = 0; in date_main() 272 tm_time.tm_min = 0; in date_main() 273 tm_time.tm_hour = 0; in date_main() 277 if (strptime(date_str, fmt_str2dt, &tm_time) == NULL) in date_main() 280 check_dst = parse_datestr(date_str, &tm_time); in date_main() 286 tm_time.tm_isdst = -1; in date_main() 287 ts.tv_sec = validate_tm_time(date_str, &tm_time); in date_main() 314 n = strftime(&fmt_dt2str[i], 8, "%z", &tm_time); in date_main() [all …]
|
D | touch.c | 141 struct tm tm_time; in touch_main() local 148 localtime_r(&t, &tm_time); in touch_main() 149 check_dst = parse_datestr(date_str, &tm_time); in touch_main() 153 tm_time.tm_isdst = -1; /* recheck dst unless date is UTC */ in touch_main() 154 t = validate_tm_time(date_str, &tm_time); in touch_main()
|
/busybox-1.35.0/miscutils/ |
D | ts.c | 57 struct tm tm_time; in ts_main() local 76 localtime_r(&ts.tv_sec, &tm_time); in ts_main() 77 strftime(date_buf, COMMON_BUFSIZE, fmt_dt2str, &tm_time); in ts_main()
|
/busybox-1.35.0/archival/libarchive/ |
D | header_verbose_list.c | 10 struct tm tm_time; in header_verbose_list() local 11 struct tm *ptm = &tm_time; //localtime(&file_header->mtime); in header_verbose_list()
|
/busybox-1.35.0/init/ |
D | bootchartd.c | 284 struct tm tm_time; in finalize() local 291 localtime_r(&t, &tm_time); in finalize() 292 strftime(date_buf, sizeof(date_buf), "%a %b %e %H:%M:%S %Z %Y", &tm_time); in finalize()
|