/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()
|
H A D | bsd-timegm.c | 63 tm->tm_hour > 24) { in timegm() 75 res += tm->tm_hour; in timegm()
|
/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/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 | 248 pt = _conv(t->tm_hour, "%02d", pt, ptlim); in _fmt() 251 pt = _conv((t->tm_hour % 12) ? in _fmt() 252 (t->tm_hour % 12) : 12, in _fmt() 269 pt = _conv(t->tm_hour, "%2d", pt, ptlim); in _fmt() 289 pt = _conv((t->tm_hour % 12) ? in _fmt() 290 (t->tm_hour % 12) : 12, in _fmt() 303 pt = _add((t->tm_hour >= (HOURSPERDAY / 2)) ? in _fmt() 326 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()
|
H A D | uglydate.c | 36 tm->tm_hour = 0; in uglydate() 46 tm->tm_yday, tm->tm_hour, tm->tm_min, tm->tm_sec, in uglydate()
|
/freebsd/contrib/llvm-project/libcxx/include/__chrono/ |
H A D | convert_to_tm.h | 93 __result.tm_hour = __sec / 3600; in __convert_to_tm() 130 __result.tm_hour = __hour.count() % 24; in __convert_to_tm() 136 __result.tm_hour = __sec / 3600; in __convert_to_tm() 174 if constexpr (sizeof(std::chrono::hours::rep) > sizeof(__result.tm_hour)) in __convert_to_tm() 175 if (__value.hours().count() > std::numeric_limits<decltype(__result.tm_hour)>::max()) in __convert_to_tm() 177 __result.tm_hour = __value.hours().count(); in __convert_to_tm()
|
/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/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/usr.bin/leave/ |
H A D | leave.c | 105 if (t->tm_hour > 11) in main() 106 t_12_hour = t->tm_hour - 12; in main() 108 t_12_hour = t->tm_hour; in main()
|
/freebsd/bin/date/ |
H A D | vary.c | 298 days = (t->tm_hour + val) / 24; in adjhour() 300 t->tm_hour += val; in adjhour() 301 t->tm_hour %= 24; in adjhour() 313 if (val > t->tm_hour) { in adjhour() 317 t->tm_hour -= val; in adjhour() 326 t->tm_hour = val; in adjhour()
|
/freebsd/crypto/openssl/crypto/asn1/ |
H A D | a_time.c | 179 tmp.tm_hour = 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/lib/libc/stdtime/ |
H A D | strftime.c | 218 pt = _conv(t->tm_hour, fmt_padding[PAD_FMT_HMS][PadIndex], in _fmt() 222 pt = _conv((t->tm_hour % 12) ? in _fmt() 223 (t->tm_hour % 12) : 12, in _fmt() 243 pt = _conv(t->tm_hour, fmt_padding[PAD_FMT_SHMS][PadIndex], in _fmt() 264 pt = _conv((t->tm_hour % 12) ? in _fmt() 265 (t->tm_hour % 12) : 12, in _fmt() 282 pt = _add((t->tm_hour >= (HOURSPERDAY / 2)) ? in _fmt()
|