Home
last modified time | relevance | path

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

1234

/mirbsd/src/usr.bin/at/
Dparsetime.c301 tm->tm_hour++; in dateadd()
302 if (tm->tm_hour > 23) { in dateadd()
304 tm->tm_hour = 0; in dateadd()
312 tm->tm_hour++; in dateadd()
315 if (tm->tm_hour > 23) { in dateadd()
317 tm->tm_hour = 0; in dateadd()
415 if ((sc_tokid == EOF || sc_tokid == PLUS) && tm->tm_hour > hour) { in tod()
420 tm->tm_hour = hour; in tod()
422 if (tm->tm_hour == 24) { in tod()
423 tm->tm_hour = 0; in tod()
[all …]
/mirbsd/src/lib/libc/time/
Dstrptime.c252 if (!(_conv_num(&bp, &tm->tm_hour, 0, 23))) in _strptime()
261 if (!(_conv_num(&bp, &tm->tm_hour, 1, 12))) in _strptime()
339 if (tm->tm_hour > 12) /* i.e., 13:00 AM ?! */ in _strptime()
341 else if (tm->tm_hour == 12) in _strptime()
342 tm->tm_hour = 0; in _strptime()
350 if (tm->tm_hour > 12) /* i.e., 13:00 PM ?! */ in _strptime()
352 else if (tm->tm_hour < 12) in _strptime()
353 tm->tm_hour += 12; in _strptime()
Dstrftime.c257 pt = _conv(t->tm_hour, "%02d", pt, ptlim);
260 pt = _conv((t->tm_hour % 12) ?
261 (t->tm_hour % 12) : 12,
299 pt = _conv(t->tm_hour, "%2d", pt, ptlim);
319 pt = _conv((t->tm_hour % 12) ?
320 (t->tm_hour % 12) : 12,
333 pt = _add((t->tm_hour >= (HOURSPERDAY / 2)) ?
Dzdump.c212 (void) fprintf(stderr, " hour=%d", tmp->tm_hour);
555 result += newp->tm_hour - oldp->tm_hour;
682 timeptr->tm_hour, timeptr->tm_min, timeptr->tm_sec,
/mirbsd/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()
184 (int)t.tm_hour, in cd9660_time_8426()
202 buf[3] = t.tm_hour; in cd9660_time_915()
/mirbsd/src/usr.sbin/isdn/isdnd/
Dsupport.c1005 if ( (tp->tm_hour > cep->fromhr) || in isvalidtime()
1006 (tp->tm_hour == cep->fromhr && tp->tm_min > cep->frommin) ) in isvalidtime()
1011 tp->tm_hour, tp->tm_min))); in isvalidtime()
1018 if ( (tp->tm_hour < cep->tohr) || in isvalidtime()
1019 (tp->tm_hour == cep->tohr && tp->tm_min < cep->tomin) ) in isvalidtime()
1024 tp->tm_hour, tp->tm_min))); in isvalidtime()
1036 tp->tm_hour, tp->tm_min))); in isvalidtime()
1043 if ((tp->tm_hour > cep->fromhr && tp->tm_hour < cep->tohr) || in isvalidtime()
1044 (tp->tm_hour == cep->fromhr && tp->tm_min >= cep->frommin) || in isvalidtime()
1045 (tp->tm_hour == cep->tohr && tp->tm_min < cep->tomin) ) in isvalidtime()
[all …]
/mirbsd/src/gnu/usr.bin/perl/lib/Time/
Dlocaltime.pm13 $tm_sec $tm_min $tm_hour $tm_mday
26 $tm_sec, $tm_min, $tm_hour, $tm_mday,
Dgmtime.pm13 $tm_sec $tm_min $tm_hour $tm_mday
26 $tm_sec, $tm_min, $tm_hour, $tm_mday,
/mirbsd/src/usr.sbin/ndp/
Dgmt2local.c60 dt = (loc->tm_hour - gmt->tm_hour) * 60 * 60 + in gmt2local()
/mirbsd/src/usr.sbin/httpd/src/main/
Dutil_date.c163 days = ((days * 24 + t->tm_hour) * 60 + t->tm_min) * 60 + t->tm_sec; in ap_tm2sec()
292 ds.tm_hour = ((timstr[0] - '0') * 10) + (timstr[1] - '0'); in ap_parseHTTPdate()
296 if ((ds.tm_hour > 23) || (ds.tm_min > 59) || (ds.tm_sec > 61)) in ap_parseHTTPdate()
/mirbsd/src/gnu/usr.bin/cvs/lib/
Dstrftime.c305 return (60 * (60 * (24 * days + (a->tm_hour - b->tm_hour)) in tm_diff()
391 int hour12 = tp->tm_hour; in my_strftime()
408 ((const CHAR_T *) _NL_CURRENT (LC_TIME, tp->tm_hour > 11 \ in my_strftime()
420 # define ampm (L_("AMPM") + 2 * (tp->tm_hour > 11)) in my_strftime()
971 DO_NUMBER (2, tp->tm_hour); in my_strftime()
983 DO_NUMBER_SPACEPAD (2, tp->tm_hour); in my_strftime()
1313 | (ltm.tm_hour ^ tm.tm_hour) in my_strftime()
/mirbsd/src/gnu/usr.sbin/sendmail/sendmail/
Darpadate.c128 off = (lt->tm_hour - gmt.tm_hour) * 60 + lt->tm_min - gmt.tm_min;
/mirbsd/src/usr.bin/rup/
Drup.c224 (host_time.tm_hour % 12) ? (host_time.tm_hour % 12) : 12, in print_rup_data()
226 (host_time.tm_hour >= 12) ? 'p' : 'a'); in print_rup_data()
/mirbsd/src/sys/dev/ic/
Dmk48txx.c160 tm.tm_hour = FROMBCD(bus_space_read_1(bt, bh, clkoff + MK48TXX_IHOUR));
181 tm.tm_hour >= 24 || tm.tm_min >= 60 || tm.tm_sec >= 61)
221 bus_space_write_1(bt, bh, clkoff + MK48TXX_IHOUR, TOBCD(tm.tm_hour));
/mirbsd/src/usr.bin/finger/
Dsprint.c162 if (!delta->tm_hour) { in stimeprint()
169 delta->tm_hour, delta->tm_min); in stimeprint()
Dlprint.c165 if (delta->tm_yday || delta->tm_hour || delta->tm_min) { in lprint()
174 delta->tm_hour, delta->tm_min); in lprint()
/mirbsd/src/lib/libssl/src/crypto/asn1/
Da_utctm.c220 ts->tm_mon+1,ts->tm_mday,ts->tm_hour,ts->tm_min,ts->tm_sec); in ASN1_UTCTIME_set()
259 return_cmp(g2(s->data+6), tm->tm_hour); in ASN1_UTCTIME_cmp_time_t()
283 tm.tm_hour=g2(s->data+6);
/mirbsd/src/gnu/usr.bin/cvs/m4/
Dtzset.m448 || p->tm_hour != s.tm_hour
/mirbsd/src/usr.sbin/eeprom/
Dgetdate.y583 StartDay = (localtime(&Start)->tm_hour + 1) % 24; in DSTcorrect()
584 FutureDay = (localtime(&Future)->tm_hour + 1) % 24; in DSTcorrect()
618 (time_t)tm->tm_hour, (time_t)tm->tm_min, (time_t)tm->tm_sec, in RelativeMonth()
799 return (60*(60*(24*days + (a->tm_hour - b->tm_hour)) in difftm()
882 Start -= ((tm->tm_hour * 60L + tm->tm_min) * 60L) + tm->tm_sec; in get_date()
/mirbsd/src/gnu/usr.bin/lynx/src/
Dparsdate.y616 StartDay = (localtime(&Start)->tm_hour + 1) % 24; in DSTcorrect()
617 FutureDay = (localtime(&Future)->tm_hour + 1) % 24; in DSTcorrect()
633 (time_t) tm->tm_hour, (time_t) tm->tm_min, in RelativeMonth()
875 LastTzone += gmt.tm_hour - local.tm_hour; in GetTimeInfo()
928 Start -= (tm->tm_hour * 60L + tm->tm_min) * 60L + tm->tm_sec; in parsedate()
/mirbsd/src/usr.sbin/dhcpd/
Ddb.c77 t->tm_hour, t->tm_min, t->tm_sec); in write_lease()
87 t->tm_hour, t->tm_min, t->tm_sec); in write_lease()
/mirbsd/src/bin/date/
Ddate.c225 lt->tm_hour = ATOI2(p); in setthetime()
226 if (lt->tm_hour > 23) in setthetime()
/mirbsd/src/sbin/shutdown/
Dshutdown.c490 lt->tm_hour = ATOI2(timearg); in getoffset()
491 if (lt->tm_hour < 0 || lt->tm_hour > 23) in getoffset()
/mirbsd/src/usr.bin/touch/
Dtouch.c221 t->tm_hour = ATOI2(arg); in stime_arg1()
250 t->tm_hour = ATOI2(arg); in stime_arg2()
/mirbsd/src/kern/c/
Dmirtime.c206 tm->tm_hour = sec / 60; in mjd_explode()
228 mjd->sec = tm->tm_sec + 60 * tm->tm_min + 3600 * tm->tm_hour - in mjd_implode()

1234