| /freebsd-13-stable/contrib/llvm-project/libcxx/include/__chrono/ |
| HD | hh_mm_ss.h | 57 __h_(chrono::duration_cast<chrono::hours>(chrono::abs(__d))), in hh_mm_ss() 58 __m_(chrono::duration_cast<chrono::minutes>(chrono::abs(__d) - hours())), in hh_mm_ss() 59 __s_(chrono::duration_cast<chrono::seconds>(chrono::abs(__d) - hours() - minutes())), in hh_mm_ss() 60 … __f_(chrono::duration_cast<precision>(chrono::abs(__d) - hours() - minutes() - seconds())) {} in hh_mm_ss() 63 _LIBCPP_HIDE_FROM_ABI constexpr chrono::hours hours() const noexcept { return __h_; } in hours() function 77 chrono::hours __h_; 84 _LIBCPP_HIDE_FROM_ABI inline constexpr bool is_am(const hours& __h) noexcept { in is_am() 85 return __h >= hours(0) && __h < hours(12); in is_am() 87 _LIBCPP_HIDE_FROM_ABI inline constexpr bool is_pm(const hours& __h) noexcept { in is_pm() 88 return __h >= hours(12) && __h < hours(24); in is_pm() [all …]
|
| HD | convert_to_tm.h | 127 if constexpr (is_convertible_v<_ChronoT, chrono::hours>) { in __convert_to_tm() 128 auto __hour = chrono::floor<chrono::hours>(__value); in __convert_to_tm() 174 if constexpr (sizeof(std::chrono::hours::rep) > sizeof(__result.tm_hour)) in __convert_to_tm() 175 if (__value.hours().count() > std::numeric_limits<decltype(__result.tm_hour)>::max()) in __convert_to_tm() 177 __result.tm_hour = __value.hours().count(); in __convert_to_tm()
|
| /freebsd-13-stable/usr.bin/leave/ |
| HD | leave.c | 66 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 …]
|
| /freebsd-13-stable/contrib/ldns/ |
| HD | duration.c | 66 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-13-stable/sbin/camcontrol/ |
| HD | progress.c | 140 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-13-stable/contrib/tcsh/ |
| HD | tc.sched.c | 63 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-13-stable/contrib/tzdata/ |
| HD | ziguard.awk | 27 sign, hours, minutes) 30 hours = +field 35 return 60 * hours + sign * minutes 41 hours, minutes, sign) 43 hours = int(offset / 60) 46 return sprintf("%+.4d", hours * 100 + minutes); 48 return sprintf("%+.2d", hours)
|
| HD | etcetera | 16 # Do not use a POSIX TZ setting like TZ='GMT+4', which is four hours 41 # the abbreviation "-04" and corresponds to 4 hours behind UT 43 # mean 4 hours ahead of UT (i.e. east of Greenwich).
|
| /freebsd-13-stable/lib/libc/nameser/ |
| HD | ns_ttl.c | 56 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()
|
| /freebsd-13-stable/usr.bin/procstat/ |
| HD | procstat_rusage.c | 68 int days, hours, minutes, seconds, used; in format_time() local 72 hours = minutes / 60; in format_time() 74 days = hours / 24; in format_time() 75 hours %= 24; in format_time() 83 hours, minutes, seconds, (unsigned int)tv->tv_usec); in format_time()
|
| /freebsd-13-stable/crypto/openssh/ |
| HD | progressmeter.c | 133 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-13-stable/usr.bin/ruptime/ |
| HD | ruptime.c | 126 int days, hours, minutes; in interval() local 134 hours = minutes / 60; in interval() 136 days = hours / 24; in interval() 137 hours %= 24; in interval() 140 "%s %4d+%02d:%02d", updown, days, hours, minutes); in interval() 143 "%s %2d:%02d", updown, hours, minutes); in interval()
|
| /freebsd-13-stable/contrib/ntp/scripts/stats/ |
| HD | README.timecodes | 41 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-13-stable/usr.sbin/rtsold/ |
| HD | dump.c | 159 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-13-stable/contrib/sendmail/contrib/ |
| HD | movemail.conf | 4 my $hours = 3600; 25 6*$hours # q2 to q3
|
| /freebsd-13-stable/usr.bin/rusers/ |
| HD | rusers.c | 102 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-13-stable/contrib/ntp/ntpd/ |
| HD | refclock_chronolog.c | 178 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()
|
| HD | refclock_dumbclock.c | 195 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-13-stable/usr.sbin/repquota/ |
| HD | repquota.c | 347 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()
|
| /freebsd-13-stable/sbin/dump/ |
| HD | optr.c | 194 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()
|
| /freebsd-13-stable/sys/contrib/device-tree/Bindings/ |
| HD | property-units.txt | 29 -microamp-hours : microampere hour 32 -microwatt-hours: microwatt hour
|
| /freebsd-13-stable/usr.sbin/acpi/acpiconf/ |
| HD | acpiconf.c | 90 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()
|
| /freebsd-13-stable/contrib/wireguard-tools/ |
| HD | show.c | 132 unsigned long long years, days, hours, minutes, seconds; in pretty_time() local 138 hours = left / (60 * 60); in pretty_time() 147 if (hours) in pretty_time() 148 …%llu " TERMINAL_FG_CYAN "hour%s" TERMINAL_RESET, offset ? ", " : "", hours, hours == 1 ? "" : "s"… in pretty_time()
|
| /freebsd-13-stable/usr.sbin/rwhod/ |
| HD | rwhod.c | 762 int days, hours, minutes; in interval() local 769 hours = minutes / 60; in interval() 771 days = hours / 24; in interval() 772 hours %= 24; in interval() 775 updown, days, hours, minutes); in interval() 778 updown, hours, minutes); in interval()
|
| /freebsd-13-stable/bin/date/tests/ |
| HD | format_string_test.sh | 143 iso8601_string_test hours hours "" "1970-02-07T07+00:00" "2001-11-12T21+00:00"
|