Home
last modified time | relevance | path

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

12345678910>>...12

/netbsd/lib/libc/time/
H A 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()
H A Dstrftime.c285 pt = _conv(t->tm_hour, in _fmt()
290 pt = _conv((t->tm_hour % 12) ? in _fmt()
291 (t->tm_hour % 12) : 12, in _fmt()
311 pt = _conv(t->tm_hour, in _fmt()
333 pt = _conv((t->tm_hour % 12) ? in _fmt()
334 (t->tm_hour % 12) : 12, in _fmt()
352 pt = _add((t->tm_hour >= (HOURSPERDAY / 2)) ? in _fmt()
379 tm.tm_hour = t->tm_hour; in _fmt()
/netbsd/crypto/external/bsd/heimdal/dist/lib/roken/
H A 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()
H A 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()
H A Dtimegm.c67 if (tm->tm_hour < 0 || tm->tm_hour > 23) in rk_timegm()
81 res += tm->tm_hour; in rk_timegm()
/netbsd/external/gpl2/rcs/dist/src/
H A Dmaketime.c127 + (a->tm_hour - b->tm_hour)
153 if ((t->tm_hour -= (59-t->tm_min)/60) < 0) {
154 t->tm_hour += 24;
170 if (24 <= (t->tm_hour += t->tm_min/60)) {
171 t->tm_hour -= 24;
241 | (tm->tm_hour ^ gtm->tm_hour)
298 if (!TM_DEFINED(tm.tm_hour)) tm.tm_hour = 0;
H A Dpartime.c212 t->tm.tm_sec = t->tm.tm_min = t->tm.tm_hour = t->tm.tm_mday = t->tm.tm_mon
486 if (t->tm.tm_hour == 12)
487 t->tm.tm_hour = 0;
491 if (t->tm.tm_hour != 12)
492 t->tm.tm_hour += 12;
523 s = parse_decimal (s, 2, 0, 23, 60*60, &t->tm.tm_hour, &frac);
575 ) + 1, 1, 12, &t->tm.tm_hour);
651 conflict (t->tm.tm_hour, u->tm.tm_hour) ||
669 merge_ (t->tm.tm_hour, u->tm.tm_hour)
H A Drcstime.c59 tm->tm_hour, tm->tm_min, tm->tm_sec
152 t.tm_hour = atoi(p+6);
178 z->tm_mon + 1, z->tm_mday, z->tm_hour, z->tm_min, z->tm_sec,
/netbsd/external/mpl/bind/dist/lib/isc/
H A Dtm.c132 ret = tm->tm_sec + (60 * tm->tm_min) + (3600 * tm->tm_hour) + in isc_tm_timegm()
330 if (!(conv_num(&bp, &tm->tm_hour, 0, 23))) { in isc_tm_strptime()
340 if (!(conv_num(&bp, &tm->tm_hour, 1, 12))) { in isc_tm_strptime()
343 if (tm->tm_hour == 12) { in isc_tm_strptime()
344 tm->tm_hour = 0; in isc_tm_strptime()
375 if (tm->tm_hour > 11) { in isc_tm_strptime()
385 if (tm->tm_hour > 11) { in isc_tm_strptime()
389 tm->tm_hour += 12; in isc_tm_strptime()
/netbsd/usr.bin/leave/
H A 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/tests/lib/libutil/
H A Dt_parsedate.c104 ATF_CHECK_MSG(tm.tm_hour == hour, in parsecheck()
106 argstr, hour, (int)tm.tm_hour); in parsecheck()
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()
448 tm.tm_hour = tm.tm_min = tm.tm_sec = 0; in ATF_TC_BODY()
[all …]
/netbsd/usr.sbin/makefs/cd9660/
H A 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/crypto/external/bsd/heimdal/dist/lib/asn1/
H A 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()
/netbsd/external/bsd/nsd/dist/compat/
H A Dstrptime.c193 tm->tm_hour = ret; in nsd_strptime()
202 tm->tm_hour = ret; in nsd_strptime()
236 if (tm->tm_hour < 0 || tm->tm_hour > 11) { /* %I */ in nsd_strptime()
241 tm->tm_hour += 12; in nsd_strptime()
/netbsd/external/bsd/unbound/dist/compat/
H A Dstrptime.c189 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()
/netbsd/external/bsd/ntp/dist/libntp/
H A 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()
H A Dhumandate.c34 tm->tm_hour, tm->tm_min, tm->tm_sec); in humanlogtime()
59 tm->tm_hour, tm->tm_min, tm->tm_sec); in humantime()
/netbsd/external/gpl2/gettext/dist/gettext-tools/src/
H A Dpo-time.c48 return 60l * (60l * (24l * days + (a->tm_hour - b->tm_hour)) in difftm()
73 local_time.tm_hour, in po_strftime()
/netbsd/usr.bin/at/
H A 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/crypto/external/bsd/openssl/dist/crypto/asn1/
H A 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()
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()
/netbsd/tests/lib/libc/time/
H A 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/external/gpl3/gcc.old/dist/libgfortran/intrinsics/
H A Ddate_and_time.c158 60 * (local_time.tm_hour - UTC_time.tm_hour + in date_and_time()
160 values[4] = local_time.tm_hour; in date_and_time()
312 x[0] = local_time.tm_hour; in itime0()
475 x[2] = lt.tm_hour; in gmtime_0()
567 x[2] = lt.tm_hour; in ltime_0()
/netbsd/external/gpl2/xcvs/dist/m4/
H A 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/external/gpl3/gcc/dist/libgfortran/intrinsics/
H A Ddate_and_time.c168 + 60 * (local_time.tm_hour - UTC_time.tm_hour + 24 * delta_day); in date_and_time()
170 values[4] = local_time.tm_hour; in date_and_time()
322 x[0] = local_time.tm_hour; in itime0()
485 x[2] = lt.tm_hour; in gmtime_0()
577 x[2] = lt.tm_hour; in ltime_0()
/netbsd/external/bsd/tcpdump/dist/
H A Dgmt2local.c57 dt = (loc->tm_hour - gmt->tm_hour) * 60 * 60 + in gmt2local()

12345678910>>...12