Home
last modified time | relevance | path

Searched refs:tm_mon (Results 1 – 25 of 109) sorted by relevance

12345

/openbsd/regress/lib/libc/time/time_conversion/
H A Dtimetest.c38 tm2->tm_mon != tm1->tm_mon || in tm_match()
60 .tm_mon=5,
73 .tm_mon=5,
91 .tm_mon=5,
104 .tm_mon=5,
122 .tm_mon=5,
135 .tm_mon=5,
166 .tm_mon=0,
184 .tm_mon=0,
197 .tm_mon=0,
[all …]
/openbsd/usr.bin/calendar/
H A Dday.c117 tm.tm_mon = i; in setnnames()
204 tm.tm_mon = tp->tm_mon; in Mktime()
313 month = tp->tm_mon + 1; in isnow()
324 month = tp->tm_mon + 1; in isnow()
338 month = tp->tm_mon + 1; in isnow()
366 month = tp->tm_mon + 1; in isnow()
430 tmtmp.tm_mon = monthp - 1; in isnow()
504 tmtmp.tm_mon = month; in isnow()
505 switch(tmtmp.tm_mon) { in isnow()
511 tmtmp.tm_mon = month = 0; in isnow()
[all …]
/openbsd/gnu/lib/libstdc++/libstdc++/testsuite/22_locale/
H A Dtime_get_members_char.cc333 VERIFY( time02.tm_mon == time_bday.tm_mon ); in test03()
341 VERIFY( time03.tm_mon == time_bday.tm_mon ); in test03()
348 time04.tm_mon = 5; in test03()
381 VERIFY( time10.tm_mon == time_bday.tm_mon ); in test03()
391 VERIFY( time20.tm_mon == time_bday.tm_mon ); in test03()
540 VERIFY( time01.tm_mon == time_bday.tm_mon ); in test05()
550 VERIFY( time02.tm_mon == time_bday.tm_mon ); in test05()
562 VERIFY( time03.tm_mon == time_bday.tm_mon ); in test05()
574 VERIFY( time10.tm_mon == time_bday.tm_mon ); in test05()
586 VERIFY( time20.tm_mon == time_bday.tm_mon ); in test05()
[all …]
H A Dtime_get_members_wchar_t.cc333 VERIFY( time02.tm_mon == time_bday.tm_mon ); in test03()
341 VERIFY( time03.tm_mon == time_bday.tm_mon ); in test03()
348 time04.tm_mon = 5; in test03()
381 VERIFY( time10.tm_mon == time_bday.tm_mon ); in test03()
391 VERIFY( time20.tm_mon == time_bday.tm_mon ); in test03()
540 VERIFY( time01.tm_mon == time_bday.tm_mon ); in test05()
550 VERIFY( time02.tm_mon == time_bday.tm_mon ); in test05()
562 VERIFY( time03.tm_mon == time_bday.tm_mon ); in test05()
574 VERIFY( time10.tm_mon == time_bday.tm_mon ); in test05()
586 VERIFY( time20.tm_mon == time_bday.tm_mon ); in test05()
[all …]
/openbsd/usr.bin/touch/
H A Dtouch.c207 lt->tm_mon = ATOI2(arg); in stime_arg1()
208 if (lt->tm_mon > 12 || lt->tm_mon == 0) in stime_arg1()
210 --lt->tm_mon; /* Convert from 01-12 to 00-11 */ in stime_arg1()
244 lt->tm_mon = ATOI2(arg); /* MMDDhhmm[YY] */ in stime_arg2()
245 if (lt->tm_mon > 12 || lt->tm_mon == 0) in stime_arg2()
247 --lt->tm_mon; /* Convert from 01-12 to 00-11 */ in stime_arg2()
/openbsd/gnu/llvm/libcxx/include/__chrono/
H A Dconvert_to_tm.h59 __result.tm_mon = static_cast<unsigned>(__date.month()) - 1; in __convert_to_tm()
93 __result.tm_mon = static_cast<unsigned>(__value) - 1; in __convert_to_tm()
102 __result.tm_mon = static_cast<unsigned>(__value.month()) - 1; in __convert_to_tm()
104 __result.tm_mon = static_cast<unsigned>(__value.month()) - 1; in __convert_to_tm()
107 __result.tm_mon = static_cast<unsigned>(__value.month()) - 1; in __convert_to_tm()
110 __result.tm_mon = static_cast<unsigned>(__value.month()) - 1; in __convert_to_tm()
/openbsd/lib/libc/time/
H A Dstrftime.c152 pt = _add((t->tm_mon < 0 || in _fmt()
153 t->tm_mon >= MONSPERYEAR) ? in _fmt()
154 "?" : Locale->month[t->tm_mon], in _fmt()
159 pt = _add((t->tm_mon < 0 || in _fmt()
160 t->tm_mon >= MONSPERYEAR) ? in _fmt()
161 "?" : Locale->mon[t->tm_mon], in _fmt()
260 pt = _conv(t->tm_mon + 1, "%02d", pt, ptlim); in _fmt()
388 t->tm_mon == TM_JANUARY) || in _fmt()
390 t->tm_mon == TM_DECEMBER)) in _fmt()
H A Dwcsftime.c166 pt = _add((t->tm_mon < 0 || in _fmt()
167 t->tm_mon >= MONSPERYEAR) ? in _fmt()
168 UNKNOWN : Locale->month[t->tm_mon], in _fmt()
173 pt = _add((t->tm_mon < 0 || in _fmt()
174 t->tm_mon >= MONSPERYEAR) ? in _fmt()
175 UNKNOWN : Locale->mon[t->tm_mon], in _fmt()
266 pt = _conv(t->tm_mon + 1, L"%02d", pt, ptlim); in _fmt()
389 if ((w == 52 && t->tm_mon == TM_JANUARY) || in _fmt()
390 (w == 1 && t->tm_mon == TM_DECEMBER)) in _fmt()
H A Dasctime.c85 if (timeptr->tm_mon < 0 || timeptr->tm_mon >= MONSPERYEAR) in asctime3()
88 mn = mon_name[timeptr->tm_mon]; in asctime3()
H A Dstrptime.c246 tm->tm_mon = i; in _strptime()
304 if (!(_conv_num(&bp, &tm->tm_mon, 1, 12))) in _strptime()
306 tm->tm_mon--; in _strptime()
555 for (i = 0; i < tm->tm_mon; i++) in _strptime()
573 tm->tm_mon = 0; in _strptime()
574 while (tm->tm_mon < MONSPERYEAR && days >= mon_lens[tm->tm_mon]) in _strptime()
575 days -= mon_lens[tm->tm_mon++]; in _strptime()
/openbsd/gnu/usr.bin/perl/lib/Time/
H A Dgmtime.pm9 $tm_mon, $tm_year, $tm_wday, $tm_yday,
19 $tm_mon $tm_year $tm_wday $tm_yday
31 $tm_mon, $tm_year, $tm_wday, $tm_yday,
H A Dlocaltime.pm10 $tm_mon, $tm_year, $tm_wday, $tm_yday,
20 $tm_mon $tm_year $tm_wday $tm_yday
32 $tm_mon, $tm_year, $tm_wday, $tm_yday,
/openbsd/gnu/usr.bin/perl/
H A Dtime64.c173 days += julian_days_by_month[IS_LEAP(date->tm_year)][date->tm_mon]; in S_timegm64()
202 assert(tm->tm_mday <= days_in_month[IS_LEAP(tm->tm_year)][tm->tm_mon]); in S_check_tm()
204 assert(tm->tm_mon >= 0); in S_check_tm()
205 assert(tm->tm_mon <= 11); in S_check_tm()
299 dest->tm_mon = src->tm_mon; in S_copy_little_tm_to_big_TM()
460 p->tm_mon = v_tm_mon; in Perl_gmtime64_r()
553 month_diff = local_tm->tm_mon - gm_tm.tm_mon; in Perl_localtime64_r()
/openbsd/usr.bin/at/
H A Dparsetime.c353 tm->tm_mon += increment; in plus()
354 while (tm->tm_mon >= 12) { in plus()
356 tm->tm_mon -= 12; in plus()
480 (tm->tm_mon > mon ||(tm->tm_mon == mon && tm->tm_mday > mday))) in assign_date()
484 tm->tm_mon = mon; in assign_date()
555 assign_date(tm, mday, tm->tm_mon, tm->tm_year); in month()
/openbsd/bin/date/
H A Ddate.c200 lt->tm_mon = ATOI2(p); in setthetime()
201 if ((lt->tm_mon > 12) || !lt->tm_mon) in setthetime()
203 --lt->tm_mon; /* time struct is 0 - 11 */ in setthetime()
/openbsd/games/pom/
H A Dpom.c232 lt->tm_mon = ATOI2(p); in parsetime()
233 if ((lt->tm_mon > 12) || !lt->tm_mon) in parsetime()
235 --lt->tm_mon; /* time struct is 0 - 11 */ in parsetime()
/openbsd/lib/libcrypto/asn1/
H A Da_time_tm.c41 if (tm1->tm_mon < tm2->tm_mon) in ASN1_time_tm_cmp()
43 if (tm1->tm_mon > tm2->tm_mon) in ASN1_time_tm_cmp()
92 tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, in tm_to_gentime()
118 tm->tm_year % 100, tm->tm_mon + 1, tm->tm_mday, in tm_to_utctime()
262 out_tm->tm_mon = month - 1; in asn1_time_parse_cbs()
H A Da_time_posix.c181 tm->tm_mon + (int64_t)1, tm->tm_mday, tm->tm_hour, tm->tm_min, in OPENSSL_tm_to_posix()
193 if (!utc_from_posix_time(time, &tmp_tm.tm_year, &tmp_tm.tm_mon, in OPENSSL_posix_to_tm()
198 tmp_tm.tm_mon -= 1; in OPENSSL_posix_to_tm()
/openbsd/usr.sbin/unbound/testcode/
H A Dsignit.c85 if(sscanf(str, "%4d%2d%2d%2d%2d%2d", &tm.tm_year, &tm.tm_mon, in convert_timeval()
89 tm.tm_mon--; in convert_timeval()
92 if (tm.tm_mon < 0 || tm.tm_mon > 11) return 0; in convert_timeval()
/openbsd/gnu/usr.bin/perl/cpan/Time-Piece/
H A DPiece.xs165 month = ptm->tm_mon; in my_mini_mktime()
260 ptm->tm_mon = month; in my_mini_mktime()
264 ptm->tm_mon = month - 1; in my_mini_mktime()
711 tm->tm_mon = i; in _strptime()
728 tm->tm_mon = i - 1; in _strptime()
763 tm->tm_mon = mytm.tm_mon; in _strptime()
874 PUSHs(newSViv(mytm->tm_mon)); in push_common_tm()
1071 mytm.tm_mon = mon;
1138 ++mytm.tm_mon;
/openbsd/regress/lib/libc/time/strptime/
H A Dmain.c88 tm.tm_mon = -1; in main()
100 tm.tm_mon, tm.tm_year, tm.tm_wday, tm.tm_yday); in main()
/openbsd/bin/pax/
H A Dsel_subs.c604 lt->tm_mon = ATOI2(p); in str_sec()
605 if ((lt->tm_mon > 12) || !lt->tm_mon) in str_sec()
607 --lt->tm_mon; /* time struct is 0 - 11 */ in str_sec()
/openbsd/gnu/usr.bin/cvs/src/
H A Dmain.c1118 ftm->tm_mon + 1, ftm->tm_mday, ftm->tm_hour,
1148 &dest->tm_year, &dest->tm_mon, &dest->tm_mday,
1159 dest->tm_mon -= 1;
1181 source->tm_mon < 0 || source->tm_mon > 11 ? "???" : month_names[source->tm_mon],
/openbsd/usr.sbin/makefs/cd9660/
H A Dcd9660_conversion.c178 (int)t.tm_mon+1, in cd9660_time_8426()
196 buf[1] = t.tm_mon+1; in cd9660_time_915()
/openbsd/gnu/usr.bin/perl/Porting/
H A Dtimecheck.c39 (long)(tmp->tm_year) + 1900, tmp->tm_mon + 1, tmp->tm_mday, in gm_check()
91 (long)(tmp->tm_year) + 1900, tmp->tm_mon + 1, tmp->tm_mday, in lt_check()

12345