/freebsd/contrib/netbsd-tests/lib/libutil/ |
H A D | t_parsedate.c | 97 ATF_CHECK_MSG(tm.tm_mday == day, in parsecheck() 99 argstr, day, (int)tm.tm_mday); in parsecheck() 216 .tm_year = 2013-1900, .tm_mon = 7-1, .tm_mday = 9, in ATF_TC_BODY() 271 tm.tm_mday--; in ATF_TC_BODY() 277 tm.tm_mday++; in ATF_TC_BODY() 284 tm.tm_mday += 7; in ATF_TC_BODY() 285 tm.tm_mday += 4 - tm.tm_wday; in ATF_TC_BODY() 292 tm.tm_mday += 14 - (tm.tm_wday ? tm.tm_wday : 7); in ATF_TC_BODY() 299 tm.tm_mday -= 7; in ATF_TC_BODY() 300 tm.tm_mday += 5 - tm.tm_wday; in ATF_TC_BODY() [all …]
|
/freebsd/contrib/netbsd-tests/lib/libc/time/ |
H A D | t_mktime.c | 54 t->tm_hour != tt.tm_hour || t->tm_mday != tt.tm_mday) in ATF_TC_BODY() 72 tms.tm_mday = 1; in ATF_TC_BODY() 94 tms.tm_mday = 1; in ATF_TC_BODY() 102 tms.tm_mday = 1; in ATF_TC_BODY() 115 tms.tm_mday = 31; in ATF_TC_BODY() 130 tms.tm_mday = 1; in ATF_TC_BODY() 141 tms.tm_mday = 1; in ATF_TC_BODY()
|
/freebsd/usr.sbin/newsyslog/ |
H A D | ptimes.c | 162 tm.tm_mday = l; in parse8601() 172 || tm.tm_mday < 1 || tm.tm_mday > 31) in parse8601() 275 tm.tm_mday += save; in parseDWM() 277 if (tm.tm_mday > daysmon) { in parseDWM() 279 tm.tm_mday = tm.tm_mday - daysmon; in parseDWM() 297 tm.tm_mday = daysmon; in parseDWM() 307 tm.tm_mday = l; in parseDWM() 427 (ptime->tm.tm_mday> dpm)) { in ptime_relparse() 437 ptime->tm.tm_mday, ptime->tm.tm_hour, in ptime_relparse() 447 ptime->tm.tm_mday, ptime->tm.tm_hour, in ptime_relparse() [all …]
|
/freebsd/bin/date/ |
H A D | vary.c | 201 if (t->tm_mday > lmdays) in adjmon() 202 t->tm_mday = lmdays; in adjmon() 216 if (val > lmdays - t->tm_mday) { in adjday() 217 val -= lmdays - t->tm_mday + 1; in adjday() 218 t->tm_mday = 1; in adjday() 222 t->tm_mday += val; in adjday() 229 if (val >= t->tm_mday) { in adjday() 230 val -= t->tm_mday; in adjday() 231 t->tm_mday = 1; in adjday() 234 t->tm_mday = daysinmonth(t); in adjday() [all …]
|
/freebsd/contrib/ntp/libntp/ |
H A D | mktime.c | 160 result = (atmp->tm_mday - btmp->tm_mday); in tmcomp() 200 normalize(&yourtm.tm_mday, &yourtm.tm_hour, HOURSPERDAY); in time2() 202 while (yourtm.tm_mday <= 0) { in time2() 204 yourtm.tm_mday += in time2() 210 if (yourtm.tm_mday <= i) in time2() 212 yourtm.tm_mday -= i; in time2()
|
/freebsd/usr.sbin/pw/ |
H A D | psdate.c | 130 t->tm_mday = tm.tm_mday; in parse_datesub() 203 i = T->tm_mday; in parse_date() 209 i = T->tm_mday; in parse_date() 213 if (T->tm_mday != i) { in parse_date() 214 T->tm_mday = 1; in parse_date()
|
/freebsd/crypto/heimdal/lib/asn1/ |
H A D | timegm.c | 71 if (tm->tm_mday < 1 || tm->tm_mday > (int)ndays[is_leap(tm->tm_year)][tm->tm_mon]) in _der_timegm() 85 res += tm->tm_mday - 1; in _der_timegm() 133 tm->tm_mday = days + 1; in _der_gmtime()
|
H A D | check-timegm.c | 48 tm.tm_mday = 1; in test_timegm() 56 tm.tm_mday = 0; in test_timegm() 64 tm.tm_mday != 1 || in test_timegm()
|
/freebsd/contrib/dialog/ |
H A D | calendar.c | 333 cell = current->tm_mday - ((6 + current->tm_mday - current->tm_wday) % MAX_DAYS); in day_cell_number() 334 if ((current->tm_mday - 1) % MAX_DAYS != current->tm_wday) in day_cell_number() 375 int day = current->tm_mday; in draw_day() 400 mday = ((6 + current->tm_mday - in draw_day() 410 week = (current->tm_yday + 6 + mday - current->tm_mday) / MAX_DAYS; in draw_day() 653 current->tm_mday != old->tm_mday || in trace_date() 660 current->tm_mday)); in trace_date() 761 current.tm_mday = day; in dialog_calendar() 766 day = current.tm_mday; in dialog_calendar() 784 } else if (day > current.tm_mday) { in dialog_calendar() [all …]
|
/freebsd/usr.bin/at/ |
H A D | parsetime.c | 302 tm->tm_mday += delay; in plus_or_minus() 411 tm->tm_mday++; in tod() 419 tm->tm_mday++; in tod() 456 (tm->tm_mon > mon ||(tm->tm_mon == mon && tm->tm_mday > mday))) in assign_date() 459 tm->tm_mday = mday; in assign_date() 493 tm->tm_mday ++; in month() 520 mday = tm->tm_mday; in month() 649 runtime.tm_mday++; in parsetime()
|
/freebsd/crypto/heimdal/lib/roken/ |
H A D | timegm.c | 63 if (tm->tm_mday < 1 || tm->tm_mday > ndays[is_leap(tm->tm_year)][tm->tm_mon]) in rk_timegm() 77 res += tm->tm_mday - 1; in rk_timegm()
|
H A D | strftime.c | 204 tm->tm_mday, in strftime() 215 "%02d", tm->tm_mday); in strftime() 221 tm->tm_mday, in strftime() 226 "%2d", tm->tm_mday); in strftime() 231 tm->tm_mon + 1, tm->tm_mday); in strftime() 334 tm->tm_mday); in strftime()
|
/freebsd/usr.bin/calendar/ |
H A D | day.c | 85 tm.tm_mday = tp.tm_mday; in Mktime() 99 tm.tm_mday = d; in Mktime()
|
/freebsd/usr.sbin/efiwake/ |
H A D | efiwake.c | 71 &waketime.waketime.tm_mday, in main() 102 now.tm_year, now.tm_mon, now.tm_mday, now.tm_hour, now.tm_min, in main() 134 waketime.waketime.tm_mday, waketime.waketime.tm_hour, in main()
|
/freebsd/crypto/openssl/crypto/asn1/ |
H A D | a_time.c | 57 int d = tm->tm_mday; in determine_days() 175 tmp.tm_mday = n; in ossl_asn1_time_to_tm() 301 ts->tm_mday, ts->tm_hour, ts->tm_min, in ossl_asn1_time_from_tm() 306 ts->tm_mday, ts->tm_hour, ts->tm_min, in ossl_asn1_time_from_tm() 522 stm.tm_mday, stm.tm_hour, in ossl_asn1_time_print_ex() 528 _asn1_mon[stm.tm_mon], stm.tm_mday, stm.tm_hour, in ossl_asn1_time_print_ex() 536 stm.tm_mday, stm.tm_hour, in ossl_asn1_time_print_ex() 542 _asn1_mon[stm.tm_mon], stm.tm_mday, stm.tm_hour, in ossl_asn1_time_print_ex()
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | bsd-timegm.c | 60 tm->tm_mday > 31 || in timegm() 73 res += tm->tm_mday - 1; in timegm()
|
/freebsd/contrib/ntp/ntpd/ |
H A D | refclock_dumbclock.c | 255 asserted_tm.tm_mday = up->ymd.tm_mday; in dumbclock_receive() 299 pp->day = ymd2yd (adjyear, adjmon, gmtp->tm_mday); in dumbclock_receive() 306 adjyear,adjmon,gmtp->tm_mday,pp->hour,pp->minute, in dumbclock_receive()
|
H A D | refclock_chronolog.c | 247 local.tm_mday = up->day; in chronolog_receive() 261 pp->day = ymd2yd (adjyear, adjmon, gmtp->tm_mday); in chronolog_receive() 268 adjyear,adjmon,gmtp->tm_mday,pp->hour,pp->minute, in chronolog_receive()
|
/freebsd/crypto/openssl/test/ |
H A D | gmdifftest.c | 38 || !TEST_int_eq(tm1.tm_mday, tm2.tm_mday) in check_time()
|
/freebsd/usr.bin/w/ |
H A D | pr_time.c | 66 else if (tm.tm_mday != tp.tm_mday || in pr_attime()
|
/freebsd/usr.bin/chpass/ |
H A D | util.c | 69 tp->tm_mday, tp->tm_year + 1900); in ttoa() 125 lt->tm_mday = day; in atot()
|
/freebsd/sbin/shutdown/ |
H A D | shutdown.c | 516 lt->tm_mday = ATOI2(timearg); in getoffset() 517 if (lt->tm_mday < 1 || lt->tm_mday > 31) in getoffset() 540 lt->tm_mday++; in getoffset()
|
/freebsd/usr.sbin/makefs/cd9660/ |
H A D | cd9660_conversion.c | 177 (int)t.tm_mday, in cd9660_time_8426() 195 buf[2] = t.tm_mday; in cd9660_time_915()
|
/freebsd/sys/dev/efidev/ |
H A D | efirtc.c | 142 ct.day = tm.tm_mday; in efirtc_gettime() 173 tm.tm_mday = ct.day; in efirtc_settime()
|
/freebsd/contrib/llvm-project/libcxx/include/__chrono/ |
H A D | convert_to_tm.h | 73 __result.tm_mday = static_cast<unsigned>(__date.day()); in __convert_to_tm() 142 __result.tm_mday = static_cast<unsigned>(__value); in __convert_to_tm() 152 __result.tm_mday = static_cast<unsigned>(__value.day()); in __convert_to_tm()
|