Searched refs:hours (Results 1 - 25 of 67) sorted by relevance

123

/freebsd-current/contrib/llvm-project/libcxx/include/__chrono/
H A Dhh_mm_ss.h57 __h_(chrono::duration_cast<chrono::hours>(chrono::abs(__d))),
58 __m_(chrono::duration_cast<chrono::minutes>(chrono::abs(__d) - hours())),
59 __s_(chrono::duration_cast<chrono::seconds>(chrono::abs(__d) - hours() - minutes())),
60 __f_(chrono::duration_cast<precision>(chrono::abs(__d) - hours() - minutes() - seconds())) {}
63 _LIBCPP_HIDE_FROM_ABI constexpr chrono::hours hours() const noexcept { return __h_; }
77 chrono::hours __h_;
84 _LIBCPP_HIDE_FROM_ABI inline constexpr bool is_am(const hours& __h) noexcept {
85 return __h >= hours(0) && __h < hours(1
[all...]
H A Dconvert_to_tm.h121 // Not all values can be converted to hours, it may run into ratio
123 if constexpr (is_convertible_v<_ChronoT, chrono::hours>) {
124 auto __hour = chrono::floor<chrono::hours>(__value);
167 // In libc++ hours is stored as a long. The type in std::tm is an int. So
170 if constexpr (sizeof(std::chrono::hours::rep) > sizeof(__result.tm_hour))
171 if (__value.hours().count() > std::numeric_limits<decltype(__result.tm_hour)>::max())
173 __result.tm_hour = __value.hours().count();
/freebsd-current/contrib/sendmail/contrib/
H A Dmovemail.conf4 my $hours = 3600;
25 6*$hours # q2 to q3
/freebsd-current/usr.bin/leave/
H A Dleave.c54 int hours, minutes; local
81 for (hours = 0; (c = *cp) && c != '\n'; ++cp) {
84 hours = hours * 10 + (c - '0');
86 minutes = hours % 100;
87 hours /= 100;
92 secs = hours * 60 * 60 + minutes * 60;
97 if (hours > 23)
101 if (hours > 11)
102 hours
[all...]
/freebsd-current/lib/libc/nameser/
H A Dns_ttl.c52 int secs, mins, hours, days, weeks, x; local
57 hours = src % 24; src /= 24;
70 if (hours) {
71 T(fmt1(hours, 'H', &dst, &dstlen));
78 if (secs || !(weeks || days || hours || mins)) {
/freebsd-current/sbin/camcontrol/
H A Dprogress.c140 char hours[12]; local
187 (void) snprintf(hours, sizeof(hours), "%2lld:", (long long)secs);
189 (void) snprintf(hours, sizeof(hours), " ");
202 hours,
/freebsd-current/contrib/ldns/ldns/
H A Dduration.h57 time_t hours; member in struct:ldns_duration_struct
/freebsd-current/contrib/ldns/
H A Dduration.c66 duration->hours = 0;
99 if (d1->hours != d2->hours) {
100 return (int) (d1->hours - d2->hours);
162 duration->hours = (time_t) atoi(str+1);
227 if (d->hours || d->minutes || d->seconds) {
232 if (dur_scan_print(&p, eob, 'H', d->hours)
253 period += (duration->hours)*3600;
/freebsd-current/contrib/llvm-project/llvm/include/llvm/Support/
H A DCachePruning.h38 std::chrono::seconds Expiration = std::chrono::hours(7 * 24); // 1w
67 /// which means a pruning interval of 30 seconds, expiration time of 24 hours
/freebsd-current/usr.bin/procstat/
H A Dprocstat_rusage.c67 int days, hours, minutes, seconds, used; local
71 hours = minutes / 60;
73 days = hours / 24;
74 hours %= 24;
82 hours, minutes, seconds, (unsigned int)tv->tv_usec);
/freebsd-current/contrib/tcsh/
H A Dtc.sched.c63 int count, hours, minutes, dif_hour, dif_min; local
136 hours = atoi(short2str(cp));
141 if ((hours < 0) || (minutes < 0) ||
142 (hours > 23) || (minutes > 59))
149 hours += 12;
153 dif_hour = hours;
157 if ((dif_hour = hours - ltp->tm_hour) < 0)
/freebsd-current/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-current/usr.sbin/rtsold/
H A Ddump.c159 int days, hours, mins, secs; local
174 hours = (tsec / 3600) % 24;
185 if (!first || hours) {
187 n = snprintf(p, ep - p, "%dh", hours);
/freebsd-current/usr.bin/ruptime/
H A Druptime.c115 int days, hours, minutes; local
123 hours = minutes / 60;
125 days = hours / 24;
126 hours %= 24;
129 "%s %4d+%02d:%02d", updown, days, hours, minutes);
132 "%s %2d:%02d", updown, hours, minutes);
/freebsd-current/crypto/openssh/
H A Dprogressmeter.c133 int hours, minutes, seconds; local
212 hours = seconds / 3600;
213 seconds -= hours * 3600;
217 if (hours != 0) {
219 hours, minutes, seconds);
/freebsd-current/contrib/ntp/ntpd/
H A Drefclock_chronolog.c178 int hours; /* hour-of-day */ local
228 &hours,&minutes,&seconds) == 3)
248 local.tm_hour = hours;
277 pp->hour = hours;
H A Drefclock_dumbclock.c195 int hours; /* hour-of-day */ local
233 &hours,&minutes,&seconds) == 3)
256 asserted_tm.tm_hour = hours;
/freebsd-current/usr.bin/rusers/
H A Drusers.c102 int days, hours, minutes, seconds; local
136 hours = seconds / (60 * 60);
144 hours, minutes, seconds);
147 days, hours, minutes, seconds);
/freebsd-current/usr.sbin/repquota/
H A Drepquota.c335 time_t hours, minutes; local
347 hours = (minutes + 30) / 60;
348 if (hours >= 36) {
349 sprintf(buf, "%lddays", (long)(hours + 12) / 24);
/freebsd-current/bin/date/tests/
H A Dformat_string_test.sh157 iso8601_string_test hours hours "" "1970-02-07T07+00:00" "2001-11-12T21+00:00"
/freebsd-current/sbin/dump/
H A Doptr.c62 * a large number of hours of work.
188 int deltat, hours, mins; local
202 hours = deltat / 3600;
209 disk, passno, percent, hours, mins, tdone_str);
215 hours, mins, tdone_str);
/freebsd-current/usr.sbin/acpi/acpiconf/
H A Dacpiconf.c90 int hours, min, amp; local
199 hours = battio.battinfo.min / 60;
201 printf("Remaining time:\t\t%d:%02d\n", hours, min);
/freebsd-current/usr.sbin/rwhod/
H A Drwhod.c749 int days, hours, minutes; local
756 hours = minutes / 60;
758 days = hours / 24;
759 hours %= 24;
762 updown, days, hours, minutes);
765 updown, hours, minutes);
/freebsd-current/sys/dev/iicbus/rtc/
H A Drv3032.c161 uint8_t hours; member in struct:rv3032_timeregs
393 ct.hour = FROMBCD(time_regs.hours & 0x3f);
418 time_regs.hours = TOBCD(ct.hour);
/freebsd-current/sys/dev/iicbus/pmic/rockchip/
H A Drk8xx.h77 uint8_t hours; member in struct:rk8xx_rtc_reg

Completed in 196 milliseconds

123