Home
last modified time | relevance | path

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

123456789

/netbsd/usr.bin/leave/
H A Dleave.c74 int hours, minutes; in main() local
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()
122 hours += 12; in main()
[all …]
/netbsd/external/public-domain/tz/dist/
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)
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/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/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/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/external/mpl/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/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/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/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()
/netbsd/external/bsd/ntp/dist/ntpd/
H A Drefclock_chronolog.c180 int hours; /* hour-of-day */ in chronolog_receive() local
230 &hours,&minutes,&seconds) == 3) in chronolog_receive()
250 local.tm_hour = hours; in chronolog_receive()
279 pp->hour = hours; in chronolog_receive()
H A Drefclock_dumbclock.c203 int hours; /* hour-of-day */ in dumbclock_receive() local
241 &hours,&minutes,&seconds) == 3) in dumbclock_receive()
264 asserted_tm.tm_hour = hours; in dumbclock_receive()
/netbsd/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/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()
/netbsd/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/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/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/external/mpl/bind/dist/bin/tests/system/digdelv/ns2/
H A Dexample.db.in46 ; TTL of 3 hours
47 hours 10800 A 10.53.0.2
/netbsd/external/mpl/bind/dist/bin/tests/system/checkzone/zones/
H A Dcrashzone.db12 43200 ; refresh (12 hours)
15 7200 ; minimum (2 hours)
/netbsd/external/apache2/llvm/dist/libcxx/include/
H A Dchrono633 constexpr chrono::hours hours() const noexcept;
649 constexpr hours make12(const hours& h) noexcept;
650 constexpr hours make24(const hours& h, bool is_pm) noexcept;
2817 constexpr bool is_am(const hours& __h) noexcept { return __h >= hours( 0) && __h < hours(12); }
2818 constexpr bool is_pm(const hours& __h) noexcept { return __h >= hours(12) && __h < hours(24); }
2820 constexpr hours make12(const hours& __h) noexcept
2822 if (__h == hours( 0)) return hours(12);
2827 constexpr hours make24(const hours& __h, bool __is_pm) noexcept
2830 return __h == hours(12) ? __h : __h + hours(12);
2832 return __h == hours(12) ? hours(0) : __h;
[all …]
/netbsd/games/dm/
H A Ddm.c283 static const char *const hours[] = { in hour() local
292 return (hours[h]); in hour()
/netbsd/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/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()
260 hours = true; in config_dict_adddev_prop()
289 else if (hours) { in config_dict_adddev_prop()
/netbsd/external/mpl/bind/dist/bin/python/
H A Ddnssec-coverage.rst72 of time by adding a suffix: mi for minutes, h for hours, d for days,
86 time by adding a suffix: mi for minutes, h for hours, d for days, w
108 time by adding a suffix: mi for minutes, h for hours, d for days, w
131 of time by adding a suffix: mi for minutes, h for hours, d for days,

123456789