Home
last modified time | relevance | path

Searched refs:hours (Results 1 – 25 of 116) sorted by relevance

12345

/NextBSD/usr.bin/leave/
HDleave.c66 int hours, minutes; in main() local
93 for (hours = 0; (c = *cp) && c != '\n'; ++cp) { in main()
96 hours = hours * 10 + (c - '0'); in main()
98 minutes = hours % 100; in main()
99 hours /= 100; in main()
104 secs = hours * 60 * 60 + minutes * 60; in main()
109 if (hours > 23) in main()
113 if (hours > 11) in main()
114 hours -= 12; in main()
122 if (hours < t_12_hour || in main()
[all …]
/NextBSD/contrib/ldns/
HDduration.c66 duration->hours = 0; in ldns_duration_create()
99 if (d1->hours != d2->hours) { in ldns_duration_compare()
100 return (int) (d1->hours - d2->hours); in ldns_duration_compare()
162 duration->hours = (time_t) atoi(str+1); in ldns_duration_create_from_string()
238 if (duration->hours > 0) { in ldns_duration2string()
239 count = count + 1 + digits_in_number(duration->hours); in ldns_duration2string()
289 if (duration->hours > 0) { in ldns_duration2string()
290 count = digits_in_number(duration->hours); in ldns_duration2string()
292 snprintf(num, count+2, "%uH", (unsigned int) duration->hours); in ldns_duration2string()
326 period += (duration->hours)*3600; in ldns_duration2time()
/NextBSD/sbin/camcontrol/
HDprogress.c140 char hours[12]; in progress_draw() local
187 (void) snprintf(hours, sizeof(hours), "%2lld:", (long long)secs); in progress_draw()
189 (void) snprintf(hours, sizeof(hours), " "); in progress_draw()
202 hours, in progress_draw()
/NextBSD/contrib/tcsh/
HDtc.sched.c67 int count, hours, minutes, dif_hour, dif_min; in dosched() local
140 hours = atoi(short2str(cp)); in dosched()
145 if ((hours < 0) || (minutes < 0) || in dosched()
146 (hours > 23) || (minutes > 59)) in dosched()
153 hours += 12; in dosched()
157 dif_hour = hours; in dosched()
161 if ((dif_hour = hours - ltp->tm_hour) < 0) in dosched()
/NextBSD/lib/libc/nameser/
HDns_ttl.c56 int secs, mins, hours, days, weeks, x; in ns_format_ttl() local
61 hours = src % 24; src /= 24; in ns_format_ttl()
74 if (hours) { in ns_format_ttl()
75 T(fmt1(hours, 'H', &dst, &dstlen)); in ns_format_ttl()
82 if (secs || !(weeks || days || hours || mins)) { in ns_format_ttl()
/NextBSD/usr.bin/procstat/
HDprocstat_rusage.c70 int days, hours, minutes, seconds, used; in format_time() local
74 hours = minutes / 60; in format_time()
76 days = hours / 24; in format_time()
77 hours %= 24; in format_time()
85 hours, minutes, seconds, (unsigned int)tv->tv_usec); in format_time()
/NextBSD/usr.bin/ruptime/
HDruptime.c125 int days, hours, minutes; in interval() local
133 hours = minutes / 60; in interval()
135 days = hours / 24; in interval()
136 hours %= 24; in interval()
139 "%s %4d+%02d:%02d", updown, days, hours, minutes); in interval()
142 "%s %2d:%02d", updown, hours, minutes); in interval()
/NextBSD/crypto/openssh/
HDprogressmeter.c129 int hours, minutes, seconds; in refresh_progress_meter() local
208 hours = seconds / 3600; in refresh_progress_meter()
209 seconds -= hours * 3600; in refresh_progress_meter()
213 if (hours != 0) in refresh_progress_meter()
215 "%d:%02d:%02d", hours, minutes, seconds); in refresh_progress_meter()
/NextBSD/usr.sbin/rtsold/
HDdump.c140 int days, hours, mins, secs; in sec2str() local
155 hours = (tsec / 3600) % 24; in sec2str()
166 if (!first || hours) { in sec2str()
168 n = snprintf(p, ep - p, "%dh", hours); in sec2str()
/NextBSD/contrib/ntp/scripts/stats/
HDREADME.timecodes41 hh:mm:ss = hours, minutes, seconds
42 zz = timezone offset (hours from UTC)
46 been lost for about ten hours
62 hh:mm:ss.fff = hours, minutes, seconds, milliseconds of day
68 been lost for about ten hours; unlock condition is indicated by
82 hh:mm:ss = hours, minutes, seconds
99 hh:mm:ss = hours, minutes, seconds
132 hh:mm:ss.fff = hours, minutes, seconds, milliseconds of day
/NextBSD/usr.bin/rusers/
HDrusers.c103 int days, hours, minutes, seconds; in rusers_reply() local
137 hours = seconds / (60 * 60); in rusers_reply()
145 hours, minutes, seconds); in rusers_reply()
148 days, hours, minutes, seconds); in rusers_reply()
/NextBSD/contrib/ntp/ntpd/
HDrefclock_chronolog.c178 int hours; /* hour-of-day */ in chronolog_receive() local
228 &hours,&minutes,&seconds) == 3) in chronolog_receive()
248 local.tm_hour = hours; in chronolog_receive()
277 pp->hour = hours; in chronolog_receive()
HDrefclock_dumbclock.c201 int hours; /* hour-of-day */ in dumbclock_receive() local
239 &hours,&minutes,&seconds) == 3) in dumbclock_receive()
262 asserted_tm.tm_hour = hours; in dumbclock_receive()
/NextBSD/usr.sbin/acpi/acpiconf/
HDacpiconf.c89 int hours, min, amp; in acpi_battinfo() local
171 hours = battio.battinfo.min / 60; in acpi_battinfo()
173 printf("Remaining time:\t\t%d:%02d\n", hours, min); in acpi_battinfo()
/NextBSD/usr.sbin/repquota/
HDrepquota.c347 time_t hours, minutes; in timeprt() local
359 hours = (minutes + 30) / 60; in timeprt()
360 if (hours >= 36) { in timeprt()
361 sprintf(buf, "%lddays", (long)(hours + 12) / 24); in timeprt()
/NextBSD/contrib/tzdata/
HDetcetera33 # the abbreviation "GMT+4" and corresponds to 4 hours behind UT
35 # mean 4 hours ahead of UT (i.e. east of Greenwich).
44 # Do not use a TZ setting like TZ='GMT+4', which is four hours behind
55 Zone Etc/GMT-14 14 - GMT-14 # 14 hours ahead of GMT
/NextBSD/sbin/dump/
HDoptr.c194 int deltat, hours, mins; in timeest() local
208 hours = deltat / 3600; in timeest()
215 disk, passno, percent, hours, mins, tdone_str); in timeest()
221 hours, mins, tdone_str); in timeest()
/NextBSD/usr.sbin/rwhod/
HDrwhod.c761 int days, hours, minutes; in interval() local
768 hours = minutes / 60; in interval()
770 days = hours / 24; in interval()
771 hours %= 24; in interval()
774 updown, days, hours, minutes); in interval()
777 updown, hours, minutes); in interval()
/NextBSD/usr.sbin/newsyslog/
HDnewsyslog.c167 int hours; /* Hours between log trimming */ member
403 tempwork->hours = src_entry->hours; in init_entry()
423 tempwork->hours = -1; in init_entry()
563 } else if (verbose && ent->hours <= 0) { in do_entry()
569 if (verbose && (ent->hours > 0)) in do_entry()
570 printf(" age (hr): %d [%d] ", modtime, ent->hours); in do_entry()
587 } else if (ent->hours <= 0 && (ent->flags & CE_TRIMAT)) { in do_entry()
589 } else if ((ent->hours > 0) && ((modtime >= ent->hours) || in do_entry()
1229 working->hours = 0; in parse_file()
1231 working->hours = -1; in parse_file()
[all …]
/NextBSD/sbin/ifconfig/
HDaf_inet6.c376 int days, hours, mins, secs; in sec2str() local
382 hours = (total / 3600) % 24; in sec2str()
390 if (!first || hours) { in sec2str()
392 p += sprintf(p, "%dh", hours); in sec2str()
/NextBSD/bin/ps/
HDprint.c576 int days, hours, mins, secs; in elapsed() local
584 hours = val / (60 * 60); in elapsed()
589 asprintf(&str, "%3d-%02d:%02d:%02d", days, hours, mins, secs); in elapsed()
590 else if (hours != 0) in elapsed()
591 asprintf(&str, "%02d:%02d:%02d", hours, mins, secs); in elapsed()
/NextBSD/usr.sbin/rrenumd/
HDparser.y108 %type <num> lifetime days hours minutes seconds
591 | days hours minutes seconds
611 hours:
/NextBSD/usr.bin/quota/
HDquota.c451 time_t hours, minutes; in timeprt() local
464 hours = (minutes + 30) / 60; in timeprt()
465 if (hours >= 36) { in timeprt()
466 if (asprintf(&buf, "%lddays", ((long)hours + 12) / 24) < 0) in timeprt()
/NextBSD/contrib/ldns/ldns/
HDduration.h57 time_t hours; member
/NextBSD/contrib/unbound/sldns/
HDparseutil.c76 time_t hours; in sldns_mktime_from_utc() local
89 hours = days * 24 + tm->tm_hour; in sldns_mktime_from_utc()
90 minutes = hours * 60 + tm->tm_min; in sldns_mktime_from_utc()

12345