Home
last modified time | relevance | path

Searched refs:tm_hour (Results 1 – 25 of 163) sorted by relevance

1234567

/netbsd/src/lib/libc/time/
Dgetdate.c97 rtm.tm_sec = rtm.tm_min = rtm.tm_hour = TMSENTINEL; in getdate()
187 if (rtm.tm_hour == TMSENTINEL && in getdate()
189 rtm.tm_hour = tmnow.tm_hour; in getdate()
197 if (rtm.tm_hour != TMSENTINEL && in getdate()
203 if (rtm.tm_hour < tmnow.tm_hour) in getdate()
204 rtm.tm_hour += 24; in getdate()
211 if (rtm.tm_hour == TMSENTINEL) in getdate()
212 rtm.tm_hour = 0; in getdate()
Dstrftime.c343 pt = _conv(t->tm_hour, in _fmt()
348 pt = _conv((t->tm_hour % 12) ? in _fmt()
349 (t->tm_hour % 12) : 12, in _fmt()
369 pt = _conv(t->tm_hour, in _fmt()
391 pt = _conv((t->tm_hour % 12) ? in _fmt()
392 (t->tm_hour % 12) : 12, in _fmt()
410 pt = _add((t->tm_hour >= (HOURSPERDAY / 2)) ? in _fmt()
437 tm.tm_hour = t->tm_hour; in _fmt()
Dstrptime.c298 bp = conv_num(bp, &tm->tm_hour, 0, 23); in strptime_l()
307 bp = conv_num(bp, &tm->tm_hour, 1, 12); in strptime_l()
308 if (tm->tm_hour == 12) in strptime_l()
309 tm->tm_hour = 0; in strptime_l()
338 if (HAVE_HOUR(state) && tm->tm_hour > 11) in strptime_l()
340 tm->tm_hour += i * 12; in strptime_l()
/netbsd/src/crypto/external/bsd/heimdal/dist/lib/roken/
Dstrftime.c207 tm->tm_hour, in strftime()
243 "%02d", tm->tm_hour); in strftime()
248 hour_24to12 (tm->tm_hour)); in strftime()
256 "%2d", tm->tm_hour); in strftime()
261 hour_24to12 (tm->tm_hour)); in strftime()
276 hour_to_ampm (tm->tm_hour)); in strftime()
281 hour_24to12 (tm->tm_hour), in strftime()
284 hour_to_ampm (tm->tm_hour)); in strftime()
289 tm->tm_hour, in strftime()
307 tm->tm_hour, in strftime()
Dstrptime.c307 timeptr->tm_hour = ret; in strptime()
314 timeptr->tm_hour = 0; in strptime()
316 timeptr->tm_hour = ret; in strptime()
345 if (timeptr->tm_hour == 0) { in strptime()
347 timeptr->tm_hour = 12; in strptime()
349 timeptr->tm_hour += 12; in strptime()
Dtimegm.c67 if (tm->tm_hour < 0 || tm->tm_hour > 23) in rk_timegm()
81 res += tm->tm_hour; in rk_timegm()
/netbsd/src/usr.bin/leave/
Dleave.c116 if (t->tm_hour >= 12) in main()
117 t->tm_hour -= 12; in main()
120 if (t->tm_hour > hours || in main()
121 (t->tm_hour == hours && minutes <= t->tm_min)) in main()
123 secs = (hours - t->tm_hour) * HOUR; in main()
/netbsd/src/tests/lib/libutil/
Dt_parsedate.c104 ATF_CHECK_MSG(tm.tm_hour == hour, in parsecheck()
106 argstr, hour, (int)tm.tm_hour); in parsecheck()
267 .tm_hour = 13, .tm_min = 21, .tm_sec = 53, in ATF_TC_BODY()
337 tm.tm_sec = tm.tm_min = tm.tm_hour = 0; in ATF_TC_BODY()
343 tm.tm_sec = tm.tm_min = tm.tm_hour = 0; in ATF_TC_BODY()
352 tm.tm_hour = 16; in ATF_TC_BODY()
362 tm.tm_hour = 3; in ATF_TC_BODY()
372 tm.tm_hour++; in ATF_TC_BODY()
436 tm.tm_hour = tm.tm_min = tm.tm_sec = 0; in ATF_TC_BODY()
442 tm.tm_hour = tm.tm_min = tm.tm_sec = 0; in ATF_TC_BODY()
[all …]
/netbsd/src/usr.sbin/makefs/cd9660/
Dcd9660_conversion.c162 gm.tm_hour -= t.tm_hour; in cd9660_compute_gm_offset()
169 return (char)(-(gm.tm_min + 60* (24 * gm.tm_yday + gm.tm_hour)) / 15); in cd9660_compute_gm_offset()
187 (int)t.tm_hour, in cd9660_time_8426()
208 buf[3] = t.tm_hour; in cd9660_time_915()
/netbsd/src/crypto/external/bsd/heimdal/dist/lib/asn1/
Dtimegm.c75 if (tm->tm_hour < 0 || tm->tm_hour > 23) in _der_timegm()
89 res += tm->tm_hour; in _der_timegm()
107 tm->tm_hour = (int)(secday / 3600); in _der_gmtime()
Dcheck-timegm.c51 tm.tm_hour = 10; in test_timegm()
67 tm.tm_hour != 10 || in test_timegm()
/netbsd/src/external/bsd/ntp/dist/libntp/
Dmktime.c146 normalize(&tmbuf.tm_hour, &tmbuf.tm_min, MINSPERHOUR); in mkdst()
176 if ((result = (atmp->tm_hour - btmp->tm_hour)) == 0 && in tmcomp()
201 normalize(&yourtm.tm_hour, &yourtm.tm_min, MINSPERHOUR); in time2()
202 normalize(&yourtm.tm_mday, &yourtm.tm_hour, HOURSPERDAY); in time2()
Dhumandate.c33 tm->tm_hour, tm->tm_min, tm->tm_sec); in humanlogtime()
58 tm->tm_hour, tm->tm_min, tm->tm_sec); in humantime()
Duglydate.c38 tm->tm_hour = 0; in uglydate()
48 tm->tm_yday, tm->tm_hour, tm->tm_min, tm->tm_sec, in uglydate()
/netbsd/src/usr.bin/at/
Dparsetime.c337 tm->tm_hour += delay; in plus()
408 if ((sc_tokid == TOKEOF || sc_tokid == PLUS) && (tm->tm_hour > hour || in tod()
409 (tm->tm_hour == hour && tm->tm_min > minute))) { in tod()
414 tm->tm_hour = hour; in tod()
626 if (runtime.tm_hour >= hr) { in parsetime()
630 runtime.tm_hour = hr; in parsetime()
/netbsd/src/crypto/external/bsd/openssl/dist/crypto/asn1/
Da_time.c179 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()
526 _asn1_mon[stm.tm_mon], stm.tm_mday, stm.tm_hour, in ossl_asn1_time_print_ex()
535 stm.tm_mday, stm.tm_hour, in ossl_asn1_time_print_ex()
539 _asn1_mon[stm.tm_mon], stm.tm_mday, stm.tm_hour, in ossl_asn1_time_print_ex()
/netbsd/src/tests/lib/libc/time/
Dt_mktime.c54 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()
/netbsd/src/external/gpl2/xcvs/dist/m4/
Dmktime.m475 tm.tm_hour = 2;
109 tm.tm_hour = 0;
124 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
133 && lt->tm_hour == tm.tm_hour
/netbsd/src/external/bsd/ntp/dist/tests/libntp/
Dhumandate.c34 snprintf(expected, 15, "%02d:%02d:%02d", tm->tm_hour, tm->tm_min, tm->tm_sec); in test_RegularTime()
53 snprintf(expected, 15, "%02d:%02d:%02d", tm->tm_hour, tm->tm_min, tm->tm_sec); in test_CurrentTime()
/netbsd/src/external/gpl2/xcvs/dist/lib/
Dmktime.c212 tp->tm_hour, tp->tm_min, tp->tm_sec); in guess_time_tm()
293 int hour = tp->tm_hour; in __mktime_internal()
536 | (a->tm_hour ^ b->tm_hour) in weak_alias()
550 tp->tm_hour, tp->tm_min, tp->tm_sec, in print_tm()
586 &tm.tm_hour, &tm.tm_min, &tm.tm_sec, &trailer) in main()
Dstrftime.c308 return (60 * (60 * (24 * days + (a->tm_hour - b->tm_hour)) in tm_diff()
394 int hour12 = tp->tm_hour; in my_strftime()
411 ((const CHAR_T *) _NL_CURRENT (LC_TIME, tp->tm_hour > 11 \ in my_strftime()
423 # define ampm (L_("AMPM") + 2 * (tp->tm_hour > 11)) in my_strftime()
974 DO_NUMBER (2, tp->tm_hour); in my_strftime()
986 DO_NUMBER_SPACEPAD (2, tp->tm_hour); in my_strftime()
1316 | (ltm.tm_hour ^ tm.tm_hour) in my_strftime()
/netbsd/src/external/bsd/openldap/dist/libraries/liblutil/
Dutils.c171 tm->tm_hour == 0 && tm->tm_min == 0 && tm->tm_sec == 0 ) { in lutil_tm2time()
205 sec = tm->tm_hour; in lutil_tm2time()
277 sec = tm->tm_hour; in lutil_tm2gtime()
337 tm->tm_hour = *ptr++ - '0'; in lutil_parsetime()
338 tm->tm_hour *=10; tm->tm_hour += *ptr++ - '0'; in lutil_parsetime()
339 if (tm->tm_hour < 0 || tm->tm_hour > 23) break; in lutil_parsetime()
/netbsd/src/crypto/external/bsd/openssl/dist/test/
Dgmdifftest.c39 || !TEST_int_eq(tm1.tm_hour, tm2.tm_hour) in check_time()
/netbsd/src/external/ibm-public/postfix/dist/src/global/
Dmail_date.c85 gmtoff = (lt->tm_hour - gmt.tm_hour) * HOUR_MIN + lt->tm_min - gmt.tm_min; in mail_date()
/netbsd/src/lib/libresolv/
Dns_date.c71 tim.tm_hour = datepart(cp + 8, 2, 00, 23, errp); in ns_datetosecs()
87 result += tim.tm_hour * (60*60); /*%< Hours */ in ns_datetosecs()

1234567