Home
last modified time | relevance | path

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

12345

/illumos-gate/usr/src/cmd/cron/
H A Datt1.y88 at.tm_hour = $1;
91 at.tm_hour = $1;
96 at.tm_hour = $1;
103 at.tm_hour = 12;
106 at.tm_hour = 0;
109 at.tm_hour = tp->tm_hour;
124 if (at.tm_hour < 1 || at.tm_hour > 12)
130 if (at.tm_hour < 1 || at.tm_hour > 12)
145 at.tm_hour %= 24;
155 if ((at.tm_hour < tp->tm_hour)
[all …]
H A Dat.c482 b->tm_hour += a->tm_min / 60; in atime()
485 if ((a->tm_hour += b->tm_hour) >= 24) { in atime()
486 b->tm_mday += a->tm_hour / 24; in atime()
487 a->tm_hour %= 24; in atime()
541 tv = 24 * tv + tptr->tm_hour; in gtime()
974 tm.tm_hour = atoi_for2(t); in parse_time()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/
H A Dstrftime.c65 tm->tm_hour < 0 || tm->tm_hour > 23 ||
75 if (tm->tm_hour >= 0 && tm->tm_hour <= 23)
76 tl.tm_hour = tm->tm_hour;
90 tl.tm_hour = tm->tm_hour;
H A Dmktime.c57 tm.tm_hour = ts->tm_hour;
67 ts->tm_hour = tm.tm_hour;
H A Dstrptime.c58 tm.tm_hour = ts->tm_hour;
72 ts->tm_hour = tm.tm_hour;
H A Dgetdate.c73 ts.tm_hour = tm->tm_hour;
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dgetdate.c125 rtm.tm_sec = rtm.tm_min = rtm.tm_hour = TMSENTINEL; in getdate()
212 if (rtm.tm_hour == TMSENTINEL && in getdate()
214 rtm.tm_hour = tmnow.tm_hour; in getdate()
222 if (rtm.tm_hour != TMSENTINEL && in getdate()
228 if (rtm.tm_hour < tmnow.tm_hour) in getdate()
229 rtm.tm_hour += 24; in getdate()
236 if (rtm.tm_hour == TMSENTINEL) in getdate()
237 rtm.tm_hour = 0; in getdate()
H A Dstrptime.c248 tm->tm_hour = i; in __strptime()
259 if (tm->tm_hour > 12) in __strptime()
261 if (tm->tm_hour == 12) in __strptime()
262 tm->tm_hour = 0; in __strptime()
269 if (tm->tm_hour > 12) in __strptime()
271 if (tm->tm_hour != 12) in __strptime()
272 tm->tm_hour += 12; in __strptime()
498 tm->tm_hour -= sign * (i / 100); in __strptime()
H A Dstrftime.c182 pt = _conv(t->tm_hour, PADDING(PAD_FMT_HMS), in _fmt()
186 pt = _conv((t->tm_hour % 12) ? in _fmt()
187 (t->tm_hour % 12) : 12, in _fmt()
205 pt = _conv(t->tm_hour, in _fmt()
218 pt = _conv((t->tm_hour % 12) ? in _fmt()
219 (t->tm_hour % 12) : 12, in _fmt()
235 pt = _add((t->tm_hour >= (HOURSPERDAY / 2)) ? in _fmt()
/illumos-gate/usr/src/cmd/acct/lib/
H A Dtmless.c40 if (t1->tm_hour != t2->tm_hour)
41 return(t1->tm_hour < t2->tm_hour);
H A Dpnpsplit.c126 cur.tm_hour = hp->h_hour;
311 3600L*(t2->tm_hour - t1->tm_hour));
323 if (t1->tm_hour != t2->tm_hour)
324 return(t1->tm_hour < t2->tm_hour);
H A Dtmsecs.c40 3600L*(t2->tm_hour - t1->tm_hour));
/illumos-gate/usr/src/contrib/ast/src/lib/libast/tm/
H A Dtmfix.c90 tm->tm_hour -= (60 - n) / 60; in tmfix()
95 tm->tm_hour += n / 60; in tmfix()
98 if ((n = tm->tm_hour) < 0) in tmfix()
101 tm->tm_hour = 24 - (-n) % 24; in tmfix()
106 tm->tm_hour %= 24; in tmfix()
H A Dtmxdate.c398 tm->tm_hour += p; in tmxdate()
598 tm->tm_hour = i; in tmxdate()
602 tm->tm_hour = i; in tmxdate()
957 tm->tm_hour = j; in tmxdate()
1011 k = tm->tm_hour; in tmxdate()
1012 tm->tm_hour = i; in tmxdate()
1153 tm->tm_hour += n; in tmxdate()
1274 tm->tm_hour = n; in tmxdate()
1393 tm->tm_hour += m; in tmxdate()
1425 tm->tm_hour = 6; in tmxdate()
[all …]
H A Dtmxscan.c110 if (set->hour < tm->tm_hour && set->yday < 0 && set->mday < 0 && set->wday < 0) in gen()
112 tm->tm_hour = set->hour; in gen()
127 if (tm->tm_hour < 12) in gen()
128 tm->tm_hour += 12; in gen()
132 if (tm->tm_hour >= 12) in gen()
133 tm->tm_hour -= 12; in gen()
H A Dtmxmake.c88 tm->tm_hour = n % 24; in tmxtm()
95 tm->tm_hour = x % 24; in tmxtm()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dgmt_mktime.c61 assert_time(t->tm_hour>=0); in krb5int_gmt_mktime()
62 assert_time(t->tm_hour<=23); in krb5int_gmt_mktime()
86 accum += t->tm_hour; in krb5int_gmt_mktime()
103 .tm_hour = 0, .tm_min = 0, .tm_sec = 0, in main()
/illumos-gate/usr/src/cmd/auditreduce/
H A Dtime.c173 int hour = tme->tm_hour; in tm_to_secs()
222 } else if (tme->tm_hour < 0 || tme->tm_hour > 23) { in check_time()
224 gettext("hours out of range (%d)"), tme->tm_hour + 1); in check_time()
353 thentime.tm_hour = 0; in parse_time()
446 tme->tm_hour = atoi(strs); /* get hours */ in derive_date()
482 (void) sprintf(buf + 8, "%.2d", gtime.tm_hour); in derive_str()
/illumos-gate/usr/src/cmd/smbsrv/test-msgbuf/
H A Dtest_misc.c50 int tm_hour; member
134 atm.tm_hour = ((time >> 11) & 0x1F); in smb_time_dos_to_unix()
169 i += atm.tm_hour; in smb_time_unix_to_dos()
242 result->tm_hour = (int)tsec; in smb_gmtime_r()
296 tsec += tm->tm_hour * SECSPERHOUR; in smb_timegm()
/illumos-gate/usr/src/ucbcmd/touch/
H A Dtouch.c79 newtime.tm_hour = gpair(); in gtime()
80 if (newtime.tm_hour == 24) { in gtime()
81 newtime.tm_hour = 0; in gtime()
178 tp->tm_hour < 0 || tp->tm_hour > 23 || in main()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/
H A Dfinger.c846 if (delta->tm_hour == 0) in stimeprint()
852 if (delta->tm_hour >= 10) in stimeprint()
853 (void) printf("%3d:", delta->tm_hour); in stimeprint()
856 delta->tm_hour, delta->tm_min); in stimeprint()
872 if (delta->tm_yday == 0 && delta->tm_hour == 0 && delta->tm_min == 0 && in ltimeprint()
881 delta->tm_hour, delta->tm_hour == 1 ? "" : "s"); in ltimeprint()
883 if (delta->tm_hour >= 10) in ltimeprint()
884 (void) printf("%d hours", delta->tm_hour); in ltimeprint()
885 else if (delta->tm_hour > 0) in ltimeprint()
887 delta->tm_hour, delta->tm_hour == 1 ? "" : "s", in ltimeprint()
/illumos-gate/usr/src/lib/libresolv2/common/nameser/
H A Dns_date.c66 time.tm_hour = datepart(cp + 8, 2, 00, 23, errp); in ns_datetosecs()
82 result += time.tm_hour * (60*60); /*%< Hours */ in ns_datetosecs()
/illumos-gate/usr/src/cmd/sendmail/src/
H A Darpadate.c130 off = (lt->tm_hour - gmt.tm_hour) * 60 + lt->tm_min - gmt.tm_min;
/illumos-gate/usr/src/cmd/backup/lib/
H A Dgetdate.y570 StartDay = (localtime(&Start)->tm_hour + 1) % 24;
571 FutureDay = (localtime(&Future)->tm_hour + 1) % 24;
610 (time_t)tm->tm_hour, (time_t)tm->tm_min, (time_t)tm->tm_sec,
883 &(tm->tm_mon), &(tm->tm_mday), &(tm->tm_hour),
891 tm->tm_hour, tm->tm_min, tm->tm_mon + 1,
912 yyHour = tm->tm_hour;
937 Start -= ((tm->tm_hour * 60L) + tm->tm_min * 60L) + tm->tm_sec;
/illumos-gate/usr/src/cmd/krb5/kadmin/cli/
H A Dgetdate.y690 StartDay = (localtime(&Start)->tm_hour + 1) % 24;
691 FutureDay = (localtime(&Future)->tm_hour + 1) % 24;
730 (time_t)tm->tm_hour, (time_t)tm->tm_min, (time_t)tm->tm_sec,
912 )*24 + (a->tm_hour - b->tm_hour)
1025 Start -= ((tm->tm_hour * 60L + tm->tm_min) * 60L) + tm->tm_sec;

12345