Home
last modified time | relevance | path

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

12345

/titanic_50/usr/src/cmd/cron/
H A Datt1.y72 if (at.tm_min >= 60 || at.tm_hour >= 24)
88 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)
126 at.tm_hour %= 12;
127 at.tm_hour += 12;
[all …]
/titanic_50/usr/src/lib/libast/common/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;
/titanic_50/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()
/titanic_50/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));
/titanic_50/usr/src/lib/libbc/libc/gen/common/
H A Dstrftime.c168 cp = itoa(tm->tm_hour, cp, 2);
174 cp = itoa(tm->tm_hour > 12 ?
175 tm->tm_hour - 12 :
176 (tm->tm_hour == 0 ? 12 : tm->tm_hour),
189 if (tm->tm_hour < 10) {
191 cp = itoa(tm->tm_hour, cp, 1);
193 cp = itoa(tm->tm_hour, cp, 2);
199 temp = tm->tm_hour > 12 ?
200 tm->tm_hour - 12 :
201 (tm->tm_hour == 0 ? 12 : tm->tm_hour);
[all …]
H A Dstrptime.c143 cp = cvtnum(cp, &tm->tm_hour);
146 if (tm->tm_hour > 23)
155 cp = cvtnum(cp, &tm->tm_hour);
158 if (tm->tm_hour == 12)
159 tm->tm_hour = 0;
160 else if (tm->tm_hour > 11)
212 if (tm->tm_hour == 12)
213 tm->tm_hour = 0;
220 if (tm->tm_hour > 12)
222 else if (tm->tm_hour != 12)
[all …]
/titanic_50/usr/src/lib/libast/common/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()
575 if (++tm->tm_hour > 59) in tmxdate()
590 if (k && !hit[i = tm->tm_hour]) in tmxdate()
598 tm->tm_hour = i; in tmxdate()
602 tm->tm_hour = i; in tmxdate()
948 tm->tm_hour = j; in tmxdate()
1001 k = tm->tm_hour; in tmxdate()
1002 tm->tm_hour = i; in tmxdate()
1014 tm->tm_hour = i = 0; in tmxdate()
1018 tm->tm_hour = i += 12; 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()
/titanic_50/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()
/titanic_50/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()
/titanic_50/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()
/titanic_50/usr/src/cmd/cmd-inet/usr.bin/nca/
H A Dncab2clf.c256 local_time.tm_hour < g_start_time.tm_hour || in http_clf_date()
257 (local_time.tm_hour == g_start_time.tm_hour && in http_clf_date()
280 1900 + local_time.tm_year, local_time.tm_hour, in http_clf_date()
434 if (!atoi_for2(t, &tm->tm_hour)) in parse_time()
818 &monstr[0], &t.tm_year, &t.tm_hour, &t.tm_min, in main()
/titanic_50/usr/src/cmd/cmd-inet/usr.bin/
H A Dfinger.c842 if (delta->tm_hour == 0) in stimeprint()
848 if (delta->tm_hour >= 10) in stimeprint()
849 (void) printf("%3d:", delta->tm_hour); in stimeprint()
852 delta->tm_hour, delta->tm_min); in stimeprint()
868 if (delta->tm_yday == 0 && delta->tm_hour == 0 && delta->tm_min == 0 && in ltimeprint()
877 delta->tm_hour, delta->tm_hour == 1 ? "" : "s"); in ltimeprint()
879 if (delta->tm_hour >= 10) in ltimeprint()
880 (void) printf("%d hours", delta->tm_hour); in ltimeprint()
881 else if (delta->tm_hour > 0) in ltimeprint()
883 delta->tm_hour, delta->tm_hour == 1 ? "" : "s", in ltimeprint()
/titanic_50/usr/src/lib/libresolv2/common/nameser/
H A Dns_date.c72 time.tm_hour = datepart(cp + 8, 2, 00, 23, errp); in ns_datetosecs()
88 result += time.tm_hour * (60*60); /*%< Hours */ in ns_datetosecs()
/titanic_50/usr/src/cmd/sendmail/src/
H A Darpadate.c130 off = (lt->tm_hour - gmt.tm_hour) * 60 + lt->tm_min - gmt.tm_min;
/titanic_50/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;

12345