Home
last modified time | relevance | path

Searched refs:tm (Results 1 – 10 of 10) sorted by relevance

/coreutils/src/
Dtouch.c402 struct tm const *tm = localtime (&newtime[0].tv_sec); in main() local
408 if (tm) in main()
413 tm->tm_year + 1900L, tm->tm_mon + 1, tm->tm_mday, in main()
414 tm->tm_hour, tm->tm_min, tm->tm_sec); in main()
Ddate.c657 struct tm tm; in show_date() local
662 if (localtime_rz (tz, &when.tv_sec, &tm)) in show_date()
666 fprintftime (stdout, format, &tm, tz, when.tv_nsec); in show_date()
Ddu.c380 struct tm tm; in show_date() local
381 if (localtime_rz (tz, &when.tv_sec, &tm)) in show_date()
382 fprintftime (stdout, format, &tm, tz, when.tv_nsec); in show_date()
Duptime.c65 struct tm *tmn = time_now == (time_t) -1 ? nullptr : localtime (&time_now); in print_uptime()
Dpr.c1651 struct tm tm; in init_header() local
1667 if (localtime_rz (localtz, &t.tv_sec, &tm)) in init_header()
1670 = nstrftime (nullptr, SIZE_MAX, date_format, &tm, localtz, ns) + 1; in init_header()
1672 nstrftime (buf, bufsize, date_format, &tm, localtz, ns); in init_header()
Dstat.c656 struct tm tm; in human_time() local
658 if (localtime_rz (tz, &t.tv_sec, &tm)) in human_time()
659 nstrftime (str, sizeof str, "%Y-%m-%d %H:%M:%S.%N %z", &tm, tz, ns); in human_time()
Dls.c4186 align_nstrftime (char *buf, size_t size, bool recent, struct tm const *tm, in align_nstrftime() argument
4190 ? abformat[recent][tm->tm_mon] in align_nstrftime()
4192 return nstrftime (buf, size, nfmt, tm, tz, ns); in align_nstrftime()
4206 struct tm tm; in long_time_expected_width() local
4216 if (localtime_rz (localtz, &epoch, &tm)) in long_time_expected_width()
4219 &tm, localtz, 0); in long_time_expected_width()
4328 struct tm when_local; in print_long_format()
Dpinky.c178 struct tm *tmp = localtime (&utmp_ent->ut_ts.tv_sec); in time_string()
Dwho.c218 struct tm *tmp = localtime (&utmp_ent->ut_ts.tv_sec); in time_string()
/coreutils/tests/date/
Ddate.pl35 my $tm = '08:18:48'; # next minute
117 ['next-m', "-d '$d1 next minute' '+%Y-%m-%d %T'", {OUT=>"$d0 $tm"}],