Home
last modified time | relevance | path

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

123456789

/netbsd-src/usr.bin/leave/
H A Dleave.c74 int hours, minutes; in main() local
101 for (hours = 0; (c = *cp) && c != '\n'; ++cp) { in main()
104 hours = hours * 10 + (c - '0'); in main()
106 minutes = hours % 100; in main()
107 hours /= 100; in main()
112 secs = (hours * HOUR) + (minutes * MINUTE); in main()
114 if (hours > 23) in main()
118 if (hours >= 12) in main()
119 hours -= 12; in main()
120 if (t->tm_hour > hours || in main()
[all …]
/netbsd-src/external/public-domain/tz/dist/
H A Dziguard.awk27 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)
H A Detcetera16 # 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).
/netbsd-src/lib/libc/nameser/
H A Dns_ttl.c62 int secs, mins, hours, days, weeks, x; in ns_format_ttl() local
67 hours = (int)(src % 24); src /= 24; in ns_format_ttl()
80 if (hours) { in ns_format_ttl()
81 T(fmt1(hours, 'H', &dst, &dstlen)); in ns_format_ttl()
88 if (secs || !(weeks || days || hours || mins)) { in ns_format_ttl()
/netbsd-src/external/bsd/libbind/dist/nameser/
H A Dns_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()
/netbsd-src/usr.bin/ruptime/
H A Druptime.c191 int days, hours, minutes; in interval() local
199 hours = minutes / MINSPERHOUR; in interval()
201 days = hours / HOURSPERDAY; in interval()
202 hours %= HOURSPERDAY; in interval()
205 "%s%4d+%02d:%02d", updown, days, hours, minutes); in interval()
208 "%s %2d:%02d", updown, hours, minutes); in interval()
/netbsd-src/external/mpl/dhcp/bind/dist/lib/dns/
H A Dttl.c78 unsigned secs, mins, hours, days, weeks, x; in dns_ttl_totext() local
84 hours = src % 24; in dns_ttl_totext()
101 if (hours != 0) { in dns_ttl_totext()
102 RETERR(ttlfmt(hours, "hour", verbose, (x > 0), target)); in dns_ttl_totext()
109 if (secs != 0 || (weeks == 0 && days == 0 && hours == 0 && mins == 0)) { in dns_ttl_totext()
/netbsd-src/external/mpl/bind/dist/lib/dns/
H A Dttl.c78 unsigned int secs, mins, hours, days, weeks, x; in dns_ttl_totext() local
84 hours = src % 24; in dns_ttl_totext()
101 if (hours != 0) { in dns_ttl_totext()
102 RETERR(ttlfmt(hours, "hour", verbose, (x > 0), target)); in dns_ttl_totext()
109 if (secs != 0 || (weeks == 0 && days == 0 && hours == 0 && mins == 0)) { in dns_ttl_totext()
/netbsd-src/crypto/external/bsd/openssh/dist/
H A Dprogressmeter.c137 int hours, minutes, seconds; in refresh_progress_meter() local
221 hours = seconds / 3600; in refresh_progress_meter()
222 seconds -= hours * 3600; in refresh_progress_meter()
226 if (hours != 0) { in refresh_progress_meter()
228 hours, minutes, seconds); in refresh_progress_meter()
/netbsd-src/external/bsd/ntp/dist/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
/netbsd-src/external/ibm-public/postfix/dist/src/global/
H A Dmail_conf_time.c238 static int hours; in main() local
244 "hours", "10h", &hours, 0, 0, in main()
253 vstream_printf("10 hours = %d\n", hours); in main()
H A Dmail_conf_time.ref3 10 hours = 36000
/netbsd-src/usr.bin/rusers/
H A Drusers.c191 unsigned int days, hours; in rusers_reply() local
195 hours = minutes / 60; in rusers_reply()
200 else if (hours > 0) in rusers_reply()
202 hours, minutes); in rusers_reply()
/netbsd-src/external/gpl2/xcvs/dist/lib/
H A Dgetdate.y801 to_hour (long int hours, int meridian) in to_hour() argument
807 return 0 <= hours && hours < 24 ? hours : -1; in to_hour()
809 return 0 < hours && hours < 12 ? hours : hours == 12 ? 0 : -1; in to_hour()
811 return 0 < hours && hours < 12 ? hours + 12 : hours == 12 ? 12 : -1; in to_hour()
H A Dgetdate.c2710 to_hour (long int hours, int meridian) in to_hour() argument
2716 return 0 <= hours && hours < 24 ? hours : -1; in to_hour()
2718 return 0 < hours && hours < 12 ? hours : hours == 12 ? 0 : -1; in to_hour()
2720 return 0 < hours && hours < 12 ? hours + 12 : hours == 12 ? 12 : -1; in to_hour()
/netbsd-src/usr.sbin/rwhod/
H A Drwhod.c591 int days, hours, minutes; in interval() local
598 hours = minutes / 60; minutes %= 60; in interval()
599 days = hours / 24; hours %= 24; in interval()
602 updown, days, hours, minutes); in interval()
605 updown, hours, minutes); in interval()
/netbsd-src/external/mpl/dhcp/dist/keama/tests/samples/
H A Dtest-a6.json76 # option dhcp6.time-offset -14400; # -4 hours
124 # -4 hours
H A Dvmnet8.json33 # default is 2 hours
61 # default is 2 hours
/netbsd-src/usr.bin/quota/
H A Dprintquota.c102 time_t years, months, weeks, days, hours, minutes; in timeprt() local
110 hours = (seconds + HOUR / 2) / HOUR; in timeprt()
128 if (hours > 36) { in timeprt()
/netbsd-src/external/mpl/bind/dist/bin/tests/system/checkzone/zones/
H A Dcrashzone.db12 43200 ; refresh (12 hours)
15 7200 ; minimum (2 hours)
/netbsd-src/external/apache2/llvm/dist/libcxx/include/
H A Dchrono104 typedef duration< long, ratio<3600> > hours;
620 chrono::hours h; // exposition only
633 constexpr chrono::hours hours() const noexcept;
647 constexpr bool is_am(hours const& h) noexcept;
648 constexpr bool is_pm(hours const& h) noexcept;
649 constexpr hours make12(const hours& h) noexcept;
650 constexpr hours make24(const hours& h, bool is_pm) noexcept;
806 constexpr chrono::hours operator ""h(unsigned long long); // C++14
1130 typedef duration< long, ratio<3600> > hours;
1132 typedef duration< int, ratio_multiply<ratio<24>, hours::period>> days;
[all …]
/netbsd-src/bin/ps/
H A Dprint.c861 int32_t origseconds, secs, mins, hours, days; in elapsed() local
884 hours = mins / MINSPERHOUR; in elapsed()
886 days = hours / HOURSPERDAY; in elapsed()
887 hours %= HOURSPERDAY; in elapsed()
900 } else if (hours > 0) { in elapsed()
902 fmtlen = iwidth(hours) + 6; in elapsed()
925 (void)printf("-%.*d", fmtlen - 7, hours); in elapsed()
927 } else if (hours > 0) { in elapsed()
928 (void)printf("%*d", fmtlen - 6, hours); in elapsed()
/netbsd-src/games/dm/
H A Ddm.c283 static const char *const hours[] = { in hour() local
292 return (hours[h]); in hour()
/netbsd-src/usr.sbin/envstat/
H A Dconfig.c246 bool minutes, hours; in config_dict_adddev_prop() local
248 minutes = hours = false; in config_dict_adddev_prop()
251 * Check what was specified: seconds, minutes or hours. in config_dict_adddev_prop()
260 hours = true; in config_dict_adddev_prop()
289 else if (hours) { in config_dict_adddev_prop()
/netbsd-src/external/bsd/unbound/dist/testdata/ede.tdir/bogus/
H A Drrsig-failures.test5 14400 ; refresh (4 hours)

123456789