/freebsd/contrib/netbsd-tests/lib/libutil/ |
H A D | t_parsedate.c | 93 ATF_CHECK_MSG(tm.tm_mon + 1 == month, in parsecheck() 95 argstr, month, (int)tm.tm_mon); in parsecheck() 216 .tm_year = 2013-1900, .tm_mon = 7-1, .tm_mday = 9, in ATF_TC_BODY() 328 tm.tm_mon++; in ATF_TC_BODY() 329 if (tm.tm_mon == 1 && in ATF_TC_BODY() 332 else if ((tm.tm_mon == 3 || tm.tm_mon == 5 || in ATF_TC_BODY() 333 tm.tm_mon == 8 || tm.tm_mon == 10) && tm.tm_mday == 31) in ATF_TC_BODY() 339 tm.tm_mon += 2; /* "next" means add 2 ... */ in ATF_TC_BODY() 340 if (tm.tm_mon == 13 && in ATF_TC_BODY() 343 else if (tm.tm_mon == 8 && tm.tm_mday == 31) in ATF_TC_BODY() [all …]
|
/freebsd/bin/date/ |
H A D | vary.c | 110 if (t->tm_mon == 1) in daysinmonth() 119 else if (t->tm_mon >= 0 && t->tm_mon < 12) in daysinmonth() 120 return mdays[t->tm_mon]; in daysinmonth() 158 if (val <= t->tm_mon) in adjmon() 159 val += 11 - t->tm_mon; /* early next year */ in adjmon() 161 val -= t->tm_mon + 1; /* later this year */ in adjmon() 164 if (!adjyear(t, '+', (t->tm_mon + val) / 12, 0)) in adjmon() 167 t->tm_mon += val; in adjmon() 168 if (t->tm_mon > 11) in adjmon() 169 t->tm_mon -= 12; in adjmon() [all …]
|
/freebsd/crypto/heimdal/lib/asn1/ |
H A D | timegm.c | 69 if (tm->tm_mon < 0 || tm->tm_mon > 11) in _der_timegm() 71 if (tm->tm_mday < 1 || tm->tm_mday > (int)ndays[is_leap(tm->tm_year)][tm->tm_mon]) in _der_timegm() 83 for (i = 0; i < tm->tm_mon; ++i) in _der_timegm() 124 tm->tm_mon = 0; in _der_gmtime() 127 unsigned daysinmonth = ndays[is_leap(tm->tm_year)][tm->tm_mon]; in _der_gmtime() 131 tm->tm_mon++; in _der_gmtime()
|
H A D | check-timegm.c | 47 tm.tm_mon = 9; in test_timegm() 63 tm.tm_mon != 9 || in test_timegm()
|
/freebsd/usr.sbin/newsyslog/ |
H A D | ptimes.c | 157 tm.tm_mon = (l / 100) - 1; in parse8601() 171 if (tm.tm_year < 70 || tm.tm_mon < 0 || tm.tm_mon > 12 in parse8601() 235 daysmon = days_pmonth(tm.tm_mon, tm.tm_year); in parseDWM() 278 tm.tm_mon++; in parseDWM() 280 if (tm.tm_mon >= 12) { in parseDWM() 281 tm.tm_mon = 0; in parseDWM() 424 dpm = days_pmonth(ptime->tm.tm_mon, ptime->tm.tm_year); in ptime_relparse() 436 ptime->tm.tm_year, ptime->tm.tm_mon, in ptime_relparse() 446 ptime->tm.tm_year, ptime->tm.tm_mon, in ptime_relparse() 547 tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, in ptimeget_ctime_rfc5424() [all …]
|
/freebsd/crypto/heimdal/lib/roken/ |
H A D | timegm.c | 61 if (tm->tm_mon < 0 || tm->tm_mon > 11) in rk_timegm() 63 if (tm->tm_mday < 1 || tm->tm_mday > ndays[is_leap(tm->tm_year)][tm->tm_mon]) in rk_timegm() 75 for (i = 0; i < tm->tm_mon; ++i) in rk_timegm()
|
H A D | strftime.c | 193 "%s", abb_month[tm->tm_mon]); in strftime() 197 "%s", full_month[tm->tm_mon]); in strftime() 203 tm->tm_mon + 1, in strftime() 220 tm->tm_mon + 1, in strftime() 231 tm->tm_mon + 1, tm->tm_mday); in strftime() 263 "%02d", tm->tm_mon + 1); in strftime() 333 tm->tm_mon + 1, in strftime()
|
/freebsd/contrib/tzcode/ |
H A D | strftime.c | 189 pt = _add((t->tm_mon < 0 || in _fmt() 190 t->tm_mon >= MONSPERYEAR) ? in _fmt() 191 "?" : Locale->month[t->tm_mon], in _fmt() 196 pt = _add((t->tm_mon < 0 || in _fmt() 197 t->tm_mon >= MONSPERYEAR) ? in _fmt() 198 "?" : Locale->mon[t->tm_mon], in _fmt() 297 pt = _conv(t->tm_mon + 1, "%02d", pt, ptlim); in _fmt() 328 tm.tm_mon = t->tm_mon; in _fmt() 444 t->tm_mon == TM_JANUARY) || in _fmt() 446 t->tm_mon == TM_DECEMBER)) in _fmt()
|
H A D | asctime.c | 99 if (timeptr->tm_mon < 0 || timeptr->tm_mon >= MONSPERYEAR) in asctime_r() 101 else mn = mon_name[timeptr->tm_mon]; in asctime_r()
|
/freebsd/contrib/ntp/libntp/ |
H A D | mktime.c | 159 (result = (atmp->tm_mon - btmp->tm_mon)) == 0) in tmcomp() 201 normalize(&yourtm.tm_year, &yourtm.tm_mon, MONSPERYEAR); in time2() 209 TM_YEAR_BASE)][yourtm.tm_mon]; in time2() 213 if (++yourtm.tm_mon >= MONSPERYEAR) { in time2() 214 yourtm.tm_mon = 0; in time2()
|
/freebsd/contrib/unbound/compat/ |
H A D | gmtime_r.c | 94 for (tmp->tm_mon = 0; days >= (long) ip[tmp->tm_mon]; ++(tmp->tm_mon)) 95 days = days - (long) ip[tmp->tm_mon];
|
/freebsd/crypto/openssl/crypto/asn1/ |
H A D | a_time.c | 56 int m = tm->tm_mon; in determine_days() 163 tmp.tm_mon = n - 1; in ossl_asn1_time_to_tm() 167 if (tmp.tm_mon == 1) { in ossl_asn1_time_to_tm() 171 md = mdays[tmp.tm_mon]; in ossl_asn1_time_to_tm() 300 ts->tm_year + 1900, ts->tm_mon + 1, in ossl_asn1_time_from_tm() 305 ts->tm_year % 100, ts->tm_mon + 1, in ossl_asn1_time_from_tm() 521 stm.tm_year + 1900, stm.tm_mon + 1, in ossl_asn1_time_print_ex() 528 _asn1_mon[stm.tm_mon], stm.tm_mday, stm.tm_hour, in ossl_asn1_time_print_ex() 535 stm.tm_year + 1900, stm.tm_mon + 1, 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/contrib/dialog/ |
H A D | calendar.c | 215 int month = current->tm_mon + offset; in days_in_month() 407 weeks = getisoweeks(current->tm_year + 1900, current->tm_mon + 1); in draw_day() 460 month = current->tm_mon + 1; in draw_month() 654 current->tm_mon != old->tm_mon || in trace_date() 659 current->tm_mon + 1, in trace_date() 757 current.tm_mon = month - 1; in dialog_calendar() 760 current.tm_mon + 1)) { in dialog_calendar() 768 month = current.tm_mon + 1; in dialog_calendar() 780 } else if (month > current.tm_mon + 1) { in dialog_calendar() 782 } else if (month < current.tm_mon + 1) { in dialog_calendar() [all …]
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | bsd-timegm.c | 58 if (tm->tm_mon > 12 || in timegm() 59 tm->tm_mon < 0 || in timegm() 71 for (i = 0; i < tm->tm_mon; ++i) in timegm()
|
H A D | strptime.c | 213 tm->tm_mon = i; in _strptime() 266 if (!(_conv_num(&bp, &tm->tm_mon, 1, 12))) in _strptime() 268 tm->tm_mon--; in _strptime()
|
/freebsd/lib/libc/stdtime/ |
H A D | strftime.c | 144 pt = _add((t->tm_mon < 0 || in _fmt() 145 t->tm_mon >= MONSPERYEAR) ? in _fmt() 147 tptr->month)[t->tm_mon], in _fmt() 152 pt = _add((t->tm_mon < 0 || in _fmt() 153 t->tm_mon >= MONSPERYEAR) ? in _fmt() 154 "?" : tptr->mon[t->tm_mon], in _fmt() 274 pt = _conv(t->tm_mon + 1, in _fmt() 409 t->tm_mon == TM_JANUARY) || in _fmt() 411 t->tm_mon == TM_DECEMBER)) in _fmt()
|
/freebsd/usr.bin/calendar/ |
H A D | day.c | 86 tm.tm_mon = tp.tm_mon; in Mktime() 96 tm.tm_mon = m - 1; in Mktime()
|
/freebsd/contrib/llvm-project/libcxx/include/__chrono/ |
H A D | convert_to_tm.h | 72 __result.tm_mon = static_cast<unsigned>(__date.month()) - 1; in __convert_to_tm() 144 __result.tm_mon = static_cast<unsigned>(__value) - 1; in __convert_to_tm() 153 __result.tm_mon = static_cast<unsigned>(__value.month()) - 1; in __convert_to_tm() 155 __result.tm_mon = static_cast<unsigned>(__value.month()) - 1; in __convert_to_tm() 158 __result.tm_mon = static_cast<unsigned>(__value.month()) - 1; in __convert_to_tm() 161 __result.tm_mon = static_cast<unsigned>(__value.month()) - 1; in __convert_to_tm()
|
/freebsd/usr.sbin/efiwake/ |
H A D | efiwake.c | 70 &waketime.waketime.tm_mon, in main() 102 now.tm_year, now.tm_mon, now.tm_mday, now.tm_hour, now.tm_min, in main() 133 waketime.waketime.tm_year, waketime.waketime.tm_mon, in main()
|
/freebsd/usr.sbin/pw/ |
H A D | psdate.c | 131 t->tm_mon = tm.tm_mon; in parse_datesub() 202 T->tm_mon += (int) val; in parse_date()
|
/freebsd/usr.bin/at/ |
H A D | parsetime.c | 297 tm->tm_mon += delay; in plus_or_minus() 456 (tm->tm_mon > mon ||(tm->tm_mon == mon && tm->tm_mday > mday))) in assign_date() 460 tm->tm_mon = mon; in assign_date() 531 assign_date(tm, mday, tm->tm_mon, tm->tm_year); in month()
|
/freebsd/crypto/openssl/test/ |
H A D | gmdifftest.c | 37 || !TEST_int_eq(tm1.tm_mon, tm2.tm_mon) in check_time()
|
/freebsd/usr.bin/w/ |
H A D | pr_time.c | 67 tm.tm_mon != tp.tm_mon || in pr_attime()
|
/freebsd/usr.bin/touch/ |
H A D | touch.c | 255 t->tm_mon = ATOI2(arg); in stime_arg1() 256 --t->tm_mon; /* Convert from 01-12 to 00-11 */ in stime_arg1() 289 t->tm_mon = ATOI2(arg); /* MMDDhhmm[yy] */ in stime_arg2() 290 --t->tm_mon; /* Convert from 01-12 to 00-11 */ in stime_arg2()
|
/freebsd/bin/pax/ |
H A D | sel_subs.c | 574 lt->tm_mon = ATOI2(p); in str_sec() 575 if ((lt->tm_mon > 12) || !lt->tm_mon) in str_sec() 577 --lt->tm_mon; /* time struct is 0 - 11 */ in str_sec()
|