| /freebsd/crypto/heimdal/lib/roken/ |
| H A D | strftime.c | 205 tm->tm_hour, in strftime() 241 "%02d", tm->tm_hour); in strftime() 246 hour_24to12 (tm->tm_hour)); in strftime() 254 "%2d", tm->tm_hour); in strftime() 259 hour_24to12 (tm->tm_hour)); in strftime() 274 hour_to_ampm (tm->tm_hour)); in strftime() 279 hour_24to12 (tm->tm_hour), in strftime() 282 hour_to_ampm (tm->tm_hour)); in strftime() 287 tm->tm_hour, in strftime() 305 tm->tm_hour, in strftime()
|
| H A D | timegm.c | 65 if (tm->tm_hour < 0 || tm->tm_hour > 23) in rk_timegm() 79 res += tm->tm_hour; in rk_timegm()
|
| H A D | strptime.c | 305 timeptr->tm_hour = ret; in strptime() 312 timeptr->tm_hour = 0; in strptime() 314 timeptr->tm_hour = ret; in strptime() 343 if (timeptr->tm_hour == 0) { in strptime() 345 timeptr->tm_hour = 12; in strptime() 347 timeptr->tm_hour += 12; in strptime()
|
| /freebsd/crypto/openssh/openbsd-compat/ |
| H A D | strptime.c | 238 if (!(_conv_num(&bp, &tm->tm_hour, 0, 23))) in _strptime() 247 if (!(_conv_num(&bp, &tm->tm_hour, 1, 12))) in _strptime() 277 if (tm->tm_hour > 12) /* i.e., 13:00 AM ?! */ in _strptime() 279 else if (tm->tm_hour == 12) in _strptime() 280 tm->tm_hour = 0; in _strptime() 288 if (tm->tm_hour > 12) /* i.e., 13:00 PM ?! */ in _strptime() 290 else if (tm->tm_hour < 12) in _strptime() 291 tm->tm_hour += 12; in _strptime()
|
| /freebsd/crypto/krb5/src/lib/krb5/krb/ |
| H A D | strptime.c | 231 if (!(conv_num(&bp, &tm->tm_hour, 0, 23))) 240 if (!(conv_num(&bp, &tm->tm_hour, 1, 12))) 242 if (tm->tm_hour == 12) 243 tm->tm_hour = 0; 270 if (tm->tm_hour > 11) 278 if (tm->tm_hour > 11) 281 tm->tm_hour += 12;
|
| /freebsd/contrib/netbsd-tests/lib/libutil/ |
| H A D | t_parsedate.c | 101 ATF_CHECK_MSG(tm.tm_hour == hour, in parsecheck() 103 argstr, hour, (int)tm.tm_hour); in parsecheck() 217 .tm_hour = 13, .tm_min = 21, .tm_sec = 53, in ATF_TC_BODY() 287 tm.tm_sec = tm.tm_min = tm.tm_hour = 0; in ATF_TC_BODY() 293 tm.tm_sec = tm.tm_min = tm.tm_hour = 0; in ATF_TC_BODY() 302 tm.tm_hour = 16; in ATF_TC_BODY() 312 tm.tm_hour = 3; in ATF_TC_BODY() 322 tm.tm_hour++; in ATF_TC_BODY() 386 tm.tm_hour = tm.tm_min = tm.tm_sec = 0; in ATF_TC_BODY() 392 tm.tm_hour = tm.tm_min = tm.tm_sec = 0; in ATF_TC_BODY() [all …]
|
| /freebsd/usr.sbin/makefs/cd9660/ |
| H A D | cd9660_conversion.c | 156 gm.tm_hour -= t.tm_hour; in cd9660_compute_gm_offset() 163 return (char)(-(gm.tm_min + 60* (24 * gm.tm_yday + gm.tm_hour)) / 15); in cd9660_compute_gm_offset() 178 (int)t.tm_hour, in cd9660_time_8426() 196 buf[3] = t.tm_hour; in cd9660_time_915()
|
| /freebsd/crypto/heimdal/lib/asn1/ |
| H A D | timegm.c | 73 if (tm->tm_hour < 0 || tm->tm_hour > 23) in _der_timegm() 87 res += tm->tm_hour; in _der_timegm() 105 tm->tm_hour = secday / 3600; in _der_gmtime()
|
| H A D | check-timegm.c | 49 tm.tm_hour = 10; in test_timegm() 65 tm.tm_hour != 10 || in test_timegm()
|
| /freebsd/crypto/krb5/src/util/support/ |
| H A D | gmt_mktime.c | 96 assert_time(t->tm_hour>=0); in gmt_mktime() 97 assert_time(t->tm_hour<=23); in gmt_mktime() 121 accum += t->tm_hour; in gmt_mktime() 139 .tm_hour = 0, .tm_min = 0, .tm_sec = 0, in main()
|
| /freebsd/usr.bin/grdc/ |
| H A D | grdc.c | 159 if (tm->tm_hour < 12) { in main() 160 if (tm->tm_hour == 0) in main() 161 tm->tm_hour = 12; in main() 164 if (tm->tm_hour > 12) in main() 165 tm->tm_hour -= 12; in main() 169 hour = tm->tm_hour; in main()
|
| /freebsd/contrib/unbound/compat/ |
| H A D | strptime.c | 189 tm->tm_hour = ret; in unbound_strptime() 198 tm->tm_hour = ret; in unbound_strptime() 232 if (tm->tm_hour < 0 || tm->tm_hour > 11) { /* %I */ in unbound_strptime() 237 tm->tm_hour += 12; in unbound_strptime()
|
| /freebsd/usr.bin/rup/ |
| H A D | rup.c | 137 if (host_uptime.tm_hour != 0) in rstat_reply() 139 host_uptime.tm_hour, host_uptime.tm_min); in rstat_reply() 149 (host_time.tm_hour % 12) ? host_time.tm_hour % 12 : 12, in rstat_reply() 151 (host_time.tm_hour >= 12) ? 'p' : 'a', in rstat_reply()
|
| /freebsd/contrib/tzcode/ |
| H A D | strftime.c | 305 pt = _conv(t->tm_hour, "%02d", pt, ptlim); in _fmt() 308 pt = _conv((t->tm_hour % 12) ? in _fmt() 309 (t->tm_hour % 12) : 12, in _fmt() 326 pt = _conv(t->tm_hour, "%2d", pt, ptlim); in _fmt() 346 pt = _conv((t->tm_hour % 12) ? in _fmt() 347 (t->tm_hour % 12) : 12, in _fmt() 360 pt = _add((t->tm_hour >= (HOURSPERDAY / 2)) ? in _fmt() 383 tm.tm_hour = t->tm_hour; in _fmt()
|
| /freebsd/contrib/ntp/libntp/ |
| H A D | mktime.c | 144 normalize(&tmbuf.tm_hour, &tmbuf.tm_min, MINSPERHOUR); in mkdst() 174 if ((result = (atmp->tm_hour - btmp->tm_hour)) == 0 && in tmcomp() 199 normalize(&yourtm.tm_hour, &yourtm.tm_min, MINSPERHOUR); in time2() 200 normalize(&yourtm.tm_mday, &yourtm.tm_hour, HOURSPERDAY); in time2()
|
| H A D | humandate.c | 31 tm->tm_hour, tm->tm_min, tm->tm_sec); in humanlogtime() 56 tm->tm_hour, tm->tm_min, tm->tm_sec); in humantime()
|
| /freebsd/usr.bin/at/ |
| H A D | parsetime.c | 305 tm->tm_hour += delay; in plus_or_minus() 410 tm->tm_hour > hour) { in tod() 415 tm->tm_hour = hour; in tod() 417 if (tm->tm_hour == 24) { in tod() 418 tm->tm_hour = 0; in tod() 648 if (runtime.tm_hour >= hr) { in parsetime() 652 runtime.tm_hour = hr; in parsetime()
|
| /freebsd/usr.sbin/newsyslog/ |
| H A D | ptimes.c | 192 tm.tm_hour = l; in parse8601() 202 || tm.tm_min > 59 || tm.tm_hour < 0 || tm.tm_hour > 23) in parse8601() 252 tm.tm_hour = l; in parseDWM() 401 ptime->tm.tm_hour = ptime->tm.tm_min = ptime->tm.tm_sec = 0; 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() 548 tm.tm_hour, tm.tm_min, tm.tm_sec, in ptimeget_ctime_rfc5424()
|
| /freebsd/usr.sbin/efiwake/ |
| H A D | efiwake.c | 72 &waketime.waketime.tm_hour, 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/contrib/llvm-project/libcxx/include/__chrono/ |
| H A D | convert_to_tm.h | 97 __result.tm_hour = __sec / 3600; in __convert_to_tm() 167 __result.tm_hour = __hour.count() % 24; in __convert_to_tm() 173 __result.tm_hour = __sec / 3600; in __convert_to_tm() 211 if constexpr (sizeof(std::chrono::hours::rep) > sizeof(__result.tm_hour)) in __convert_to_tm() 212 if (__value.hours().count() > std::numeric_limits<decltype(__result.tm_hour)>::max()) in __convert_to_tm() 214 __result.tm_hour = __value.hours().count(); in __convert_to_tm()
|
| /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() 116 tms.tm_hour = 23; in ATF_TC_BODY()
|
| /freebsd/bin/date/ |
| H A D | vary.c | 300 days = (t->tm_hour + val) / 24; in adjhour() 302 t->tm_hour += val; in adjhour() 303 t->tm_hour %= 24; in adjhour() 315 if (val > t->tm_hour) { in adjhour() 319 t->tm_hour -= val; in adjhour() 328 t->tm_hour = val; in adjhour()
|
| /freebsd/usr.bin/leave/ |
| H A D | leave.c | 112 if (t->tm_hour > 11) in main() 113 t_12_hour = t->tm_hour - 12; in main() 115 t_12_hour = t->tm_hour; in main()
|
| /freebsd/lib/libc/stdtime/ |
| H A D | strftime.c | 220 pt = _conv(t->tm_hour, fmt_padding[PAD_FMT_HMS][PadIndex], in _fmt() 224 pt = _conv((t->tm_hour % 12) ? in _fmt() 225 (t->tm_hour % 12) : 12, in _fmt() 245 pt = _conv(t->tm_hour, fmt_padding[PAD_FMT_SHMS][PadIndex], in _fmt() 266 pt = _conv((t->tm_hour % 12) ? in _fmt() 267 (t->tm_hour % 12) : 12, in _fmt() 284 pt = _add((t->tm_hour >= (HOURSPERDAY / 2)) ? in _fmt()
|
| /freebsd/crypto/openssl/crypto/asn1/ |
| H A D | a_time.c | 177 tmp.tm_hour = n; in ossl_asn1_time_to_tm() 304 ts->tm_mday, ts->tm_hour, ts->tm_min, in ossl_asn1_time_from_tm() 309 ts->tm_mday, ts->tm_hour, ts->tm_min, in ossl_asn1_time_from_tm() 523 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() 538 stm.tm_mday, stm.tm_hour, in ossl_asn1_time_print_ex() 543 _asn1_mon[stm.tm_mon], stm.tm_mday, stm.tm_hour, in ossl_asn1_time_print_ex()
|