Home
last modified time | relevance | path

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

1234567

/freebsd/contrib/llvm-project/libcxx/include/__chrono/
H A Dhh_mm_ss.h63 _LIBCPP_HIDE_FROM_ABI constexpr chrono::hours hours() const noexcept { return __h_; } in hours() function
77 chrono::hours __h_;
85 return __h >= hours(0) && __h < hours(12); in is_am()
88 return __h >= hours(12) && __h < hours(24); in is_pm()
91 _LIBCPP_HIDE_FROM_ABI inline constexpr hours make12(const hours& __h) noexcept { in make12()
92 if (__h == hours(0)) in make12()
93 return hours(12); in make12()
94 else if (__h <= hours(12)) in make12()
97 return __h - hours(12); in make12()
102 return __h == hours(12) ? __h : __h + hours(12); in make24()
[all …]
H A Dconvert_to_tm.h123 if constexpr (is_convertible_v<_ChronoT, chrono::hours>) { in __convert_to_tm()
124 auto __hour = chrono::floor<chrono::hours>(__value); in __convert_to_tm()
170 if constexpr (sizeof(std::chrono::hours::rep) > sizeof(__result.tm_hour)) in __convert_to_tm()
171 if (__value.hours().count() > std::numeric_limits<decltype(__result.tm_hour)>::max()) in __convert_to_tm()
173 __result.tm_hour = __value.hours().count(); in __convert_to_tm()
/freebsd/usr.bin/leave/
H A Dleave.c54 int hours, minutes; in main() local
84 hours = hours * 10 + (c - '0'); in main()
86 minutes = hours % 100; in main()
87 hours /= 100; in main()
92 secs = hours * 60 * 60 + minutes * 60; in main()
97 if (hours > 23) in main()
101 if (hours > 11) in main()
102 hours -= 12; in main()
110 if (hours < t_12_hour || in main()
113 hours += 12; in main()
[all …]
/freebsd/contrib/ldns/
H A Dduration.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()
227 if (d->hours || d->minutes || d->seconds) { in ldns_duration2string()
232 if (dur_scan_print(&p, eob, 'H', d->hours) in ldns_duration2string()
253 period += (duration->hours)*3600; in ldns_duration2time()
/freebsd/sbin/camcontrol/
H A Dprogress.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()
/freebsd/contrib/tcsh/
H A Dtc.sched.c63 int count, hours, minutes, dif_hour, dif_min; in dosched() local
136 hours = atoi(short2str(cp)); in dosched()
141 if ((hours < 0) || (minutes < 0) || in dosched()
142 (hours > 23) || (minutes > 59)) in dosched()
149 hours += 12; in dosched()
153 dif_hour = hours; in dosched()
157 if ((dif_hour = hours - ltp->tm_hour) < 0) in dosched()
/freebsd/contrib/tzdata/
H A Dziguard.awk31 sign, hours, minutes)
34 hours = +field
39 return 60 * hours + sign * minutes
45 hours, minutes, sign)
47 hours = int(offset / 60)
50 return sprintf("%+.4d", hours * 100 + minutes);
52 return sprintf("%+.2d", hours)
/freebsd/lib/libc/nameser/
H A Dns_ttl.c52 int secs, mins, hours, days, weeks, x; in ns_format_ttl() local
57 hours = src % 24; src /= 24; in ns_format_ttl()
70 if (hours) { in ns_format_ttl()
71 T(fmt1(hours, 'H', &dst, &dstlen)); in ns_format_ttl()
78 if (secs || !(weeks || days || hours || mins)) { in ns_format_ttl()
/freebsd/usr.bin/procstat/
H A Dprocstat_rusage.c67 int days, hours, minutes, seconds, used; in format_time() local
71 hours = minutes / 60; in format_time()
73 days = hours / 24; in format_time()
74 hours %= 24; in format_time()
82 hours, minutes, seconds, (unsigned int)tv->tv_usec); in format_time()
/freebsd/sys/contrib/device-tree/Bindings/power/supply/
H A Dbq27xxx.yaml64 - energy-full-design-microwatt-hours
65 - charge-full-design-microamp-hours
67 Both or neither of the *-full-design-*-hours properties must be set.
81 energy-full-design-microwatt-hours = <5290000>;
82 charge-full-design-microamp-hours = <1430000>;
H A Dbattery.yaml60 energy-full-design-microwatt-hours:
63 charge-full-design-microamp-hours:
154 energy-full-design-microwatt-hours = <5290000>;
155 charge-full-design-microamp-hours = <1430000>;
/freebsd/crypto/openssh/
H A Dprogressmeter.c133 int hours, minutes, seconds; in refresh_progress_meter() local
212 hours = seconds / 3600; in refresh_progress_meter()
213 seconds -= hours * 3600; in refresh_progress_meter()
217 if (hours != 0) { in refresh_progress_meter()
219 hours, minutes, seconds); in refresh_progress_meter()
/freebsd/usr.bin/ruptime/
H A Druptime.c115 int days, hours, minutes; in interval() local
123 hours = minutes / 60; in interval()
125 days = hours / 24; in interval()
126 hours %= 24; in interval()
129 "%s %4d+%02d:%02d", updown, days, hours, minutes); in interval()
132 "%s %2d:%02d", updown, hours, minutes); in interval()
/freebsd/contrib/ntp/scripts/stats/
H A DREADME.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
/freebsd/contrib/sendmail/contrib/
H A Dmovemail.conf4 my $hours = 3600;
25 6*$hours # q2 to q3
/freebsd/usr.sbin/rtsold/
H A Ddump.c159 int days, hours, mins, secs; in sec2str() local
174 hours = (tsec / 3600) % 24; in sec2str()
185 if (!first || hours) { in sec2str()
187 n = snprintf(p, ep - p, "%dh", hours); in sec2str()
/freebsd/usr.bin/rusers/
H A Drusers.c102 int days, hours, minutes, seconds; in rusers_reply() local
136 hours = seconds / (60 * 60); in rusers_reply()
144 hours, minutes, seconds); in rusers_reply()
147 days, hours, minutes, seconds); in rusers_reply()
/freebsd/contrib/ntp/ntpd/
H A Drefclock_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()
H A Drefclock_dumbclock.c195 int hours; /* hour-of-day */ in dumbclock_receive() local
233 &hours,&minutes,&seconds) == 3) in dumbclock_receive()
256 asserted_tm.tm_hour = hours; in dumbclock_receive()
/freebsd/usr.sbin/repquota/
H A Drepquota.c335 time_t hours, minutes; in timeprt() local
347 hours = (minutes + 30) / 60; in timeprt()
348 if (hours >= 36) { in timeprt()
349 sprintf(buf, "%lddays", (long)(hours + 12) / 24); in timeprt()
/freebsd/sbin/dump/
H A Doptr.c188 int deltat, hours, mins; in timeest() local
202 hours = deltat / 3600; in timeest()
209 disk, passno, percent, hours, mins, tdone_str); in timeest()
215 hours, mins, tdone_str); in timeest()
/freebsd/sys/contrib/device-tree/Bindings/
H A Dproperty-units.txt29 -microamp-hours : microampere hour
32 -microwatt-hours: microwatt hour
/freebsd/sys/contrib/device-tree/Bindings/mfd/
H A Dene-kb930.yaml39 charge-full-design-microamp-hours = <3260000>;
40 energy-full-design-microwatt-hours = <24000000>;
/freebsd/usr.sbin/rwhod/
H A Drwhod.c749 int days, hours, minutes; in interval() local
756 hours = minutes / 60; in interval()
758 days = hours / 24; in interval()
759 hours %= 24; in interval()
762 updown, days, hours, minutes); in interval()
765 updown, hours, minutes); in interval()
/freebsd/usr.sbin/acpi/acpiconf/
H A Dacpiconf.c90 int hours, min, amp; in acpi_battinfo() local
199 hours = battio.battinfo.min / 60; in acpi_battinfo()
201 printf("Remaining time:\t\t%d:%02d\n", hours, min); in acpi_battinfo()

1234567