/busybox-1.35.0/libbb/ |
D | time.c | 13 int FAST_FUNC parse_datestr(const char *date_str, struct tm *ptm) in parse_datestr() argument 44 save = *ptm; in parse_datestr() 47 endp = strptime(date_str, fmt, ptm); in parse_datestr() 52 ptm->tm_sec -= ptm->tm_gmtoff; in parse_datestr() 53 ptm->tm_isdst = 0; in parse_datestr() 54 t = timegm(ptm); in parse_datestr() 63 *ptm = save; in parse_datestr() 76 &ptm->tm_hour, in parse_datestr() 77 &ptm->tm_min, in parse_datestr() 84 &ptm->tm_mon, &ptm->tm_mday, in parse_datestr() [all …]
|
D | rtc.c | 81 void FAST_FUNC rtc_read_tm(struct tm *ptm, int fd) in rtc_read_tm() argument 83 memset(ptm, 0, sizeof(*ptm)); in rtc_read_tm() 84 xioctl(fd, RTC_RD_TIME, ptm); in rtc_read_tm() 85 ptm->tm_isdst = -1; /* "not known" */ in rtc_read_tm() 88 time_t FAST_FUNC rtc_tm2time(struct tm *ptm, int utc) in rtc_tm2time() argument 99 t = mktime(ptm); in rtc_tm2time()
|
/busybox-1.35.0/archival/libarchive/ |
D | header_verbose_list.c | 11 struct tm *ptm = &tm_time; //localtime(&file_header->mtime); in header_verbose_list() local 20 localtime_r(&file_header->mtime, ptm); in header_verbose_list() 37 1900 + ptm->tm_year, in header_verbose_list() 38 1 + ptm->tm_mon, in header_verbose_list() 39 ptm->tm_mday, in header_verbose_list() 40 ptm->tm_hour, in header_verbose_list() 41 ptm->tm_min, in header_verbose_list() 42 ptm->tm_sec, in header_verbose_list() 47 localtime_r(&file_header->mtime, ptm); in header_verbose_list() 54 1900 + ptm->tm_year, in header_verbose_list() [all …]
|
/busybox-1.35.0/util-linux/ |
D | rtcwake.c | 72 struct tm *ptm; in setup_alarm() local 85 ptm = localtime(wakeup); in setup_alarm() 87 wake.time.tm_sec = ptm->tm_sec; in setup_alarm() 88 wake.time.tm_min = ptm->tm_min; in setup_alarm() 89 wake.time.tm_hour = ptm->tm_hour; in setup_alarm() 90 wake.time.tm_mday = ptm->tm_mday; in setup_alarm() 91 wake.time.tm_mon = ptm->tm_mon; in setup_alarm() 92 wake.time.tm_year = ptm->tm_year; in setup_alarm()
|
D | cal.c | 130 struct tm *ptm; in cal_main() local 133 ptm = localtime(&now); in cal_main() 134 year = ptm->tm_year + 1900; in cal_main() 136 month = ptm->tm_mon + 1; in cal_main()
|
D | hwclock.c | 105 struct tm *ptm = localtime(&t); in show_clock() local 106 strftime(cp, sizeof(cp), "%c", ptm); in show_clock()
|
/busybox-1.35.0/networking/ |
D | httpd_indexcgi.c | 297 struct tm *ptm; in main() local 319 ptm = gmtime(&cdir->dl_mtime); in main() 320 fmt_04u(1900 + ptm->tm_year); *dst++ = '-'; in main() 321 fmt_02u(ptm->tm_mon + 1); *dst++ = '-'; in main() 322 fmt_02u(ptm->tm_mday); *dst++ = ' '; in main() 323 fmt_02u(ptm->tm_hour); *dst++ = ':'; in main() 324 fmt_02u(ptm->tm_min); *dst++ = ':'; in main() 325 fmt_02u(ptm->tm_sec); in main()
|
/busybox-1.35.0/include/ |
D | rtc_.h | 22 void rtc_read_tm(struct tm *ptm, int fd) FAST_FUNC; 23 time_t rtc_tm2time(struct tm *ptm, int utc) FAST_FUNC;
|
D | libbb.h | 710 int parse_datestr(const char *date_str, struct tm *ptm) FAST_FUNC; 711 time_t validate_tm_time(const char *date_str, struct tm *ptm) FAST_FUNC;
|
/busybox-1.35.0/miscutils/ |
D | crond.c | 888 struct tm *ptm; in flag_starting_jobs() local 895 ptm = localtime(&t); in flag_starting_jobs() 902 if (line->cl_Mins[ptm->tm_min] in flag_starting_jobs() 903 && line->cl_Hrs[ptm->tm_hour] in flag_starting_jobs() 904 && (line->cl_Days[ptm->tm_mday] || line->cl_Dow[ptm->tm_wday]) in flag_starting_jobs() 905 && line->cl_Mons[ptm->tm_mon] in flag_starting_jobs()
|
/busybox-1.35.0/runit/ |
D | svlogd.c | 351 struct tm *ptm; in fmt_time_human_30nul() local 355 ptm = gmtime_r(&tv.tv_sec, &tm); in fmt_time_human_30nul() 358 (unsigned)(1900 + ptm->tm_year), in fmt_time_human_30nul() 359 (unsigned)(ptm->tm_mon + 1), in fmt_time_human_30nul() 360 (unsigned)(ptm->tm_mday), in fmt_time_human_30nul() 362 (unsigned)(ptm->tm_hour), in fmt_time_human_30nul() 363 (unsigned)(ptm->tm_min), in fmt_time_human_30nul() 364 (unsigned)(ptm->tm_sec), in fmt_time_human_30nul()
|
/busybox-1.35.0/procps/ |
D | iostat.c | 131 static void get_localtime(struct tm *ptm) in get_localtime() argument 135 localtime_r(&timer, ptm); in get_localtime()
|