/openbsd/regress/lib/libc/time/time_conversion/ |
H A D | timetest.c | 40 tm2->tm_hour != tm1->tm_hour || in tm_match() 62 .tm_hour=19, 75 .tm_hour=2, 93 .tm_hour=2, 106 .tm_hour=2, 124 .tm_hour=19, 137 .tm_hour=2, 168 .tm_hour=0, 186 .tm_hour=0, 199 .tm_hour=0, [all …]
|
/openbsd/usr.bin/rcs/ |
H A D | rcstime.c | 47 ltb->tm_hour += ((int)ltb->tm_gmtoff/3600); in rcs_set_tz() 72 tb->tm_hour += tzone; in rcs_set_tz() 75 tb->tm_hour -= tzone; in rcs_set_tz() 79 if ((tb->tm_hour >= 24) || (tb->tm_hour <= -24)) in rcs_set_tz() 80 tb->tm_hour = 0; in rcs_set_tz() 88 tb->tm_hour++; in rcs_set_tz()
|
/openbsd/usr.bin/at/ |
H A D | parsetime.c | 304 tm->tm_hour++; in dateadd() 305 if (tm->tm_hour > 23) { in dateadd() 307 tm->tm_hour = 0; in dateadd() 315 tm->tm_hour++; in dateadd() 318 if (tm->tm_hour > 23) { in dateadd() 320 tm->tm_hour = 0; in dateadd() 435 (tm->tm_hour > hour || in tod() 441 tm->tm_hour = hour; in tod() 443 if (tm->tm_hour == 24) { in tod() 444 tm->tm_hour = 0; in tod() [all …]
|
/openbsd/usr.sbin/makefs/cd9660/ |
H A D | cd9660_conversion.c | 158 gm.tm_hour -= t.tm_hour; in cd9660_compute_gm_offset() 165 return (char)(-(gm.tm_min + 60* (24 * gm.tm_yday + gm.tm_hour)) / 15); in cd9660_compute_gm_offset() 180 (int)t.tm_hour, in cd9660_time_8426() 198 buf[3] = t.tm_hour; in cd9660_time_915()
|
/openbsd/gnu/usr.bin/perl/lib/Time/ |
H A D | gmtime.pm | 8 our ( $tm_sec, $tm_min, $tm_hour, $tm_mday, 18 $tm_sec $tm_min $tm_hour $tm_mday 30 $tm_sec, $tm_min, $tm_hour, $tm_mday,
|
H A D | localtime.pm | 9 $tm_sec, $tm_min, $tm_hour, $tm_mday, 19 $tm_sec $tm_min $tm_hour $tm_mday 31 $tm_sec, $tm_min, $tm_hour, $tm_mday,
|
/openbsd/gnu/usr.bin/perl/cpan/Time-Piece/ |
H A D | Piece.xs | 545 tm->tm_hour = i; in _strptime() 561 if (tm->tm_hour > 12) in _strptime() 563 if (tm->tm_hour == 12) in _strptime() 564 tm->tm_hour = 0; in _strptime() 572 if (tm->tm_hour > 12) in _strptime() 574 if (tm->tm_hour != 12) in _strptime() 575 tm->tm_hour += 12; in _strptime() 761 tm->tm_hour = mytm.tm_hour; in _strptime() 872 PUSHs(newSViv(mytm->tm_hour)); in push_common_tm() 1069 mytm.tm_hour = hour; [all …]
|
/openbsd/lib/libc/time/ |
H A D | strftime.c | 211 pt = _conv(t->tm_hour, "%02d", pt, ptlim); in _fmt() 214 pt = _conv((t->tm_hour % 12) ? in _fmt() 215 (t->tm_hour % 12) : 12, in _fmt() 232 pt = _conv(t->tm_hour, "%2d", pt, ptlim); in _fmt() 252 pt = _conv((t->tm_hour % 12) ? in _fmt() 253 (t->tm_hour % 12) : 12, in _fmt() 266 pt = _add((t->tm_hour >= (HOURSPERDAY / 2)) ? in _fmt()
|
H A D | strptime.c | 275 if (!(_conv_num(&bp, &tm->tm_hour, 0, 23))) in _strptime() 284 if (!(_conv_num(&bp, &tm->tm_hour, 1, 12))) in _strptime() 315 if (tm->tm_hour > 12) /* i.e., 13:00 AM ?! */ in _strptime() 317 else if (tm->tm_hour == 12) in _strptime() 318 tm->tm_hour = 0; in _strptime() 326 if (tm->tm_hour > 12) /* i.e., 13:00 PM ?! */ in _strptime() 328 else if (tm->tm_hour < 12) in _strptime() 329 tm->tm_hour += 12; in _strptime()
|
H A D | wcsftime.c | 225 pt = _conv(t->tm_hour, L"%02d", pt, ptlim); in _fmt() 228 pt = _conv((t->tm_hour % 12) ? in _fmt() 229 (t->tm_hour % 12) : 12, in _fmt() 246 pt = _conv(t->tm_hour, L"%2d", pt, ptlim); in _fmt() 258 pt = _conv((t->tm_hour % 12) ? in _fmt() 259 (t->tm_hour % 12) : 12, in _fmt() 272 pt = _add((t->tm_hour >= (HOURSPERDAY / 2)) ? in _fmt()
|
/openbsd/gnu/lib/libstdc++/libstdc++/testsuite/22_locale/ |
H A D | time_get_members_char.cc | 91 VERIFY( time01.tm_hour == time_bday.tm_hour ); in test01() 101 VERIFY( time01.tm_hour == time_bday.tm_hour ); in test01() 109 VERIFY( time01.tm_hour == time_bday.tm_hour ); in test01() 117 VERIFY( time01.tm_hour == time_bday.tm_hour ); in test01() 130 VERIFY( time10.tm_hour == time_bday.tm_hour ); in test01() 145 VERIFY( time10.tm_hour == time_bday.tm_hour ); in test01() 633 VERIFY( tm1.tm_hour == time_sanity.tm_hour ); in test06()
|
H A D | time_get_members_wchar_t.cc | 91 VERIFY( time01.tm_hour == time_bday.tm_hour ); in test01() 101 VERIFY( time01.tm_hour == time_bday.tm_hour ); in test01() 109 VERIFY( time01.tm_hour == time_bday.tm_hour ); in test01() 117 VERIFY( time01.tm_hour == time_bday.tm_hour ); in test01() 130 VERIFY( time10.tm_hour == time_bday.tm_hour ); in test01() 145 VERIFY( time10.tm_hour == time_bday.tm_hour ); in test01() 633 VERIFY( tm1.tm_hour == time_sanity.tm_hour ); in test06()
|
/openbsd/usr.bin/leave/ |
H A D | leave.c | 110 while (t->tm_hour > hours || in main() 111 (t->tm_hour == hours && t->tm_min >= minutes)) { in main() 118 secs = (hours - t->tm_hour) * HOUR; in main()
|
/openbsd/lib/libcrypto/asn1/ |
H A D | a_time_tm.c | 49 if (tm1->tm_hour < tm2->tm_hour) in ASN1_time_tm_cmp() 51 if (tm1->tm_hour > tm2->tm_hour) in ASN1_time_tm_cmp() 92 tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, in tm_to_gentime() 119 tm->tm_hour, tm->tm_min, tm->tm_sec) == -1) { in tm_to_utctime() 264 out_tm->tm_hour = hour; in asn1_time_parse_cbs()
|
/openbsd/usr.sbin/tcpdump/ |
H A D | gmt2local.c | 55 dt = (loc->tm_hour - gmt->tm_hour) * 60 * 60 + in gmt2local()
|
/openbsd/gnu/usr.bin/perl/ |
H A D | time64.c | 180 seconds += date->tm_hour * 60 * 60; in S_timegm64() 198 assert(tm->tm_hour >= 0); in S_check_tm() 199 assert(tm->tm_hour <= 23); in S_check_tm() 297 dest->tm_hour = src->tm_hour; in S_copy_little_tm_to_big_TM() 459 p->tm_hour = v_tm_hour; in Perl_gmtime64_r()
|
/openbsd/usr.bin/touch/ |
H A D | touch.c | 214 lt->tm_hour = ATOI2(arg); in stime_arg1() 215 if (lt->tm_hour > 23) in stime_arg1() 251 lt->tm_hour = ATOI2(arg); in stime_arg2() 252 if (lt->tm_hour > 23) in stime_arg2()
|
/openbsd/regress/lib/libc/time/strptime/ |
H A D | main.c | 86 tm.tm_hour = -1; in main() 99 tm.tm_sec, tm.tm_min, tm.tm_hour, tm.tm_mday, in main()
|
/openbsd/games/pom/ |
H A D | pom.c | 96 days = (GMT->tm_yday + 1) + ((GMT->tm_hour + in main() 243 lt->tm_hour = ATOI2(p); in parsetime() 244 if (lt->tm_hour > 23) in parsetime()
|
/openbsd/usr.sbin/unbound/testcode/ |
H A D | signit.c | 86 &tm.tm_mday, &tm.tm_hour, &tm.tm_min, &tm.tm_sec) != 6) in convert_timeval() 94 if (tm.tm_hour < 0 || tm.tm_hour > 23) return 0; in convert_timeval()
|
/openbsd/usr.bin/finger/ |
H A D | sprint.c | 156 if (!delta->tm_hour) { in stimeprint() 163 delta->tm_hour, delta->tm_min); in stimeprint()
|
/openbsd/usr.bin/cvs/ |
H A D | date.y | 587 StartDay = (localtime(&Start)->tm_hour + 1) % 24; in DSTcorrect() 588 FutureDay = (localtime(&Future)->tm_hour + 1) % 24; in DSTcorrect() 622 (time_t)tm->tm_hour, (time_t)tm->tm_min, (time_t)tm->tm_sec, in RelativeMonth() 798 return (60 * (60 * (24 * days + (a->tm_hour - b->tm_hour)) in difftm() 853 Start -= ((tm.tm_hour * 60L + tm.tm_min) * 60L) + in date_parse()
|
/openbsd/usr.bin/rup/ |
H A D | rup.c | 223 (host_time.tm_hour % 12) ? (host_time.tm_hour % 12) : 12, in print_rup_data() 225 (host_time.tm_hour >= 12) ? 'p' : 'a'); in print_rup_data()
|
/openbsd/gnu/usr.bin/perl/Porting/ |
H A D | timecheck.c | 40 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in gm_check() 92 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in lt_check()
|
/openbsd/gnu/usr.bin/cvs/lib/ |
H A D | getdate.y | 659 StartDay = (localtime(&Start)->tm_hour + 1) % 24; 660 FutureDay = (localtime(&Future)->tm_hour + 1) % 24; 699 (time_t)tm->tm_hour, (time_t)tm->tm_min, (time_t)tm->tm_sec, 882 return (60*(60*(24*days + (a->tm_hour - b->tm_hour)) 958 Start -= ((tm->tm_hour * 60L + tm->tm_min) * 60L) + tm->tm_sec;
|