| /dflybsd-src/usr.bin/rusers/ |
| H A D | rusers.c | 97 int days, hours, minutes, seconds; in rusers_reply() local 129 seconds = idle; in rusers_reply() 130 days = seconds / (60 * 60 * 24); in rusers_reply() 131 seconds %= (60 * 60 * 24); in rusers_reply() 132 hours = seconds / (60 * 60); in rusers_reply() 133 seconds %= (60 * 60); in rusers_reply() 134 minutes = seconds / 60; in rusers_reply() 135 seconds %= 60; in rusers_reply() 137 sprintf(idle_time, "%d:%02d", minutes, seconds); in rusers_reply() 140 hours, minutes, seconds); in rusers_reply() [all …]
|
| /dflybsd-src/share/zoneinfo/ |
| H A D | leapseconds | 1 # Allowance for leap seconds added to each time zone file. 6 # NIST format leap-seconds.list file, which can be copied from 7 # <ftp://ftp.nist.gov/pub/time/leap-seconds.list> 8 # or <ftp://ftp.boulder.nist.gov/pub/time/leap-seconds.list>. 10 # <https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list> 13 # For more about leap-seconds.list, please see 17 # The rules for leap seconds are specified in Annex 1 (Time scales) of: 23 # periodically uses leap seconds to keep UTC to within 0.9 s of UT1 31 # There were no leap seconds before 1972, as no official mechanism 33 # rotation. The first ("1 Jan 1972") data line in leap-seconds.list [all …]
|
| /dflybsd-src/sys/vfs/smbfs/ |
| H A D | smbfs_subr.c | 110 smb_time_local2server(struct timespec *tsp, int tzoff, u_long *seconds) in smb_time_local2server() argument 112 *seconds = tsp->tv_sec - tzoff * 60 /*- tz.tz_minuteswest * 60 - in smb_time_local2server() 117 smb_time_server2local(u_long seconds, int tzoff, struct timespec *tsp) in smb_time_server2local() argument 119 tsp->tv_sec = seconds + tzoff * 60; in smb_time_server2local() 140 u_long seconds; in smb_time_local2NT() local 142 smb_time_local2server(tsp, 0, &seconds); in smb_time_local2NT() 143 *nsec = (((int64_t)(seconds) & ~1) + DIFF1970TO1601) * (int64_t)10000000; in smb_time_local2NT() 217 u_long seconds; in smb_dos2unixtime() local 228 seconds = (((dt & DT_2SECONDS_MASK) >> DT_2SECONDS_SHIFT) << 1) in smb_dos2unixtime() 254 smb_time_server2local(seconds + lastseconds, tzoff, tsp); in smb_dos2unixtime()
|
| /dflybsd-src/lib/libc/gen/ |
| H A D | sleep.c | 43 __sleep(unsigned int seconds) in __sleep() argument 52 if (seconds > INT_MAX) in __sleep() 53 return (seconds - INT_MAX + __sleep(INT_MAX)); in __sleep() 55 time_to_sleep.tv_sec = seconds; in __sleep() 60 return (seconds); /* best guess */ in __sleep()
|
| /dflybsd-src/crypto/openssh/ |
| H A D | progressmeter.c | 133 int hours, minutes, seconds; in refresh_progress_meter() local 208 seconds = bytes_left / bytes_per_second; in refresh_progress_meter() 210 seconds = elapsed; in refresh_progress_meter() 212 hours = seconds / 3600; in refresh_progress_meter() 213 seconds -= hours * 3600; in refresh_progress_meter() 214 minutes = seconds / 60; in refresh_progress_meter() 215 seconds -= minutes * 60; in refresh_progress_meter() 219 hours, minutes, seconds); in refresh_progress_meter() 221 xextendf(&buf, NULL, " %02d:%02d", minutes, seconds); in refresh_progress_meter()
|
| /dflybsd-src/usr.sbin/mfiutil/ |
| H A D | mfi_cmd.c | 317 uint seconds; in mfi_display_progress() local 323 seconds = (0x10000 * (uint32_t)prog->elapsed_seconds) / in mfi_display_progress() 325 if (seconds > 3600) in mfi_display_progress() 326 printf("%u:", seconds / 3600); in mfi_display_progress() 327 if (seconds > 60) { in mfi_display_progress() 328 seconds %= 3600; in mfi_display_progress() 329 printf("%02u:%02u", seconds / 60, seconds % 60); in mfi_display_progress() 331 printf("%us", seconds); in mfi_display_progress()
|
| /dflybsd-src/contrib/ldns/ |
| H A D | duration.c | 68 duration->seconds = 0; in ldns_duration_create() 105 if (d1->seconds != d2->seconds) { in ldns_duration_compare() 106 return (int) (d1->seconds - d2->seconds); in ldns_duration_compare() 174 duration->seconds = (time_t) atoi(str+1); in ldns_duration_create_from_string() 227 if (d->hours || d->minutes || d->seconds) { in ldns_duration2string() 234 || dur_scan_print(&p, eob, 'S', d->seconds)) in ldns_duration2string() 251 period += (duration->seconds); in ldns_duration2time()
|
| H A D | rdata.c | 695 uint32_t seconds = 0; in ldns_str2period() local 706 return seconds; in ldns_str2period() 713 return seconds; in ldns_str2period() 718 seconds += i; in ldns_str2period() 723 seconds += i * 60; in ldns_str2period() 728 seconds += i * 60 * 60; in ldns_str2period() 733 seconds += i * 60 * 60 * 24; in ldns_str2period() 738 seconds += i * 60 * 60 * 24 * 7; in ldns_str2period() 755 seconds += i; in ldns_str2period() 757 return seconds; in ldns_str2period() [all …]
|
| /dflybsd-src/contrib/tcpdump/ |
| H A D | print-arista.c | 31 arista_print_date_hms_time(netdissect_options *ndo, uint32_t seconds, in arista_print_date_hms_time() argument 38 ts = seconds + (nanoseconds / 1000000000); in arista_print_date_hms_time() 54 uint32_t seconds, nanoseconds; in arista_ethertype_print() local 74 seconds = GET_BE_U_4(bp); in arista_ethertype_print() 76 arista_print_date_hms_time(ndo, seconds, nanoseconds); in arista_ethertype_print()
|
| H A D | ntp.c | 57 time_t seconds; in p_ntp_time() local 61 seconds = (time_t)seconds_64bit; in p_ntp_time() 62 if (seconds != seconds_64bit) { in p_ntp_time() 69 tm = gmtime(&seconds); in p_ntp_time()
|
| /dflybsd-src/contrib/dialog/ |
| H A D | pause.c | 52 int seconds) in dialog_pause() argument 87 DLG_TRACE2N("seconds", seconds); in dialog_pause() 91 seconds_orig = (seconds > 0) ? seconds : 1; in dialog_pause() 157 (void) wprintw(dialog, "%3d", seconds); in dialog_pause() 164 x = (seconds * (width - 2 * (3 + MARGIN))) / seconds_orig; in dialog_pause() 248 } while ((result == DLG_EXIT_UNKNOWN) && (seconds-- > 0)); in dialog_pause()
|
| /dflybsd-src/games/rogue/ |
| H A D | machdep.c | 300 time_t seconds; in md_gct() local 302 time(&seconds); in md_gct() 303 t = localtime(&seconds); in md_gct() 333 time_t seconds; in md_gfmt() local 337 seconds = sbuf.st_mtime; in md_gfmt() 338 t = localtime(&seconds); in md_gfmt()
|
| /dflybsd-src/contrib/dhcpcd/src/ |
| H A D | eloop.c | 194 unsigned int seconds; member 507 if (secs > t->seconds) { in eloop_reduce_timers() 508 t->seconds = 0; in eloop_reduce_timers() 511 t->seconds -= (unsigned int)secs; in eloop_reduce_timers() 513 if (t->seconds == 0) in eloop_reduce_timers() 516 t->seconds--; in eloop_reduce_timers() 536 unsigned int seconds, unsigned int nseconds, in eloop_q_timeout_add() argument 565 t->seconds = seconds; in eloop_q_timeout_add() 574 if (t->seconds < tt->seconds || in eloop_q_timeout_add() 575 (t->seconds == tt->seconds && t->nseconds < tt->nseconds)) in eloop_q_timeout_add() [all …]
|
| /dflybsd-src/contrib/gcc-8.0/libstdc++-v3/src/c++11/ |
| H A D | compatibility-chrono.cc | 51 typedef chrono::seconds duration; 77 return time_point(duration(chrono::seconds(tv.tv_sec) in now() 82 typedef chrono::time_point<system_clock, seconds> __from; in now() 84 (__from(chrono::seconds(__sec))); in now()
|
| H A D | chrono.cc | 64 return time_point(duration(chrono::seconds(tp.tv_sec) in now() 70 return time_point(duration(chrono::seconds(tv.tv_sec) in now() 92 return time_point(duration(chrono::seconds(tp.tv_sec) in now()
|
| /dflybsd-src/usr.bin/top/ |
| H A D | utils.c | 554 format_time(long seconds, char *result, int len) in format_time() argument 558 if (seconds < 0 || seconds > (99999l * 360l)) in format_time() 562 else if (seconds >= (1000l * 60l)) in format_time() 565 snprintf(result, len - 1, "%5.1fH", (double)seconds / (double)(60l * 60l)); in format_time() 578 snprintf(result, len - 1, "%3ld:%02ld", seconds / 60l, seconds % 60l); in format_time()
|
| /dflybsd-src/crypto/libressl/crypto/ts/ |
| H A D | ts_rsp_utils.c | 269 TS_ACCURACY_set_seconds(TS_ACCURACY *a, const ASN1_INTEGER *seconds) in TS_ACCURACY_set_seconds() argument 273 if (a->seconds == seconds) in TS_ACCURACY_set_seconds() 275 new_seconds = ASN1_INTEGER_dup(seconds); in TS_ACCURACY_set_seconds() 280 ASN1_INTEGER_free(a->seconds); in TS_ACCURACY_set_seconds() 281 a->seconds = new_seconds; in TS_ACCURACY_set_seconds() 288 return a->seconds; in TS_ACCURACY_get_seconds()
|
| /dflybsd-src/contrib/binutils-2.34/gprof/ |
| H A D | flat_bl.m | 5 cumulative a running sum of the number of seconds accounted 6 seconds for by this function and those listed above it. 8 self the number of seconds accounted for by this 9 seconds function alone. This is the major sort for this
|
| H A D | bsd_callg_bl.m | 17 self the number of seconds spent in this function 21 the number of seconds spent in the descendents of 40 self* the number of seconds of this function's self time 44 the number of seconds of this function's 67 self* the number of seconds of this child's self time 71 the number of seconds of this child's descendent's
|
| /dflybsd-src/contrib/binutils-2.27/gprof/ |
| H A D | flat_bl.m | 5 cumulative a running sum of the number of seconds accounted 6 seconds for by this function and those listed above it. 8 self the number of seconds accounted for by this 9 seconds function alone. This is the major sort for this
|
| H A D | bsd_callg_bl.m | 17 self the number of seconds spent in this function 21 the number of seconds spent in the descendents of 40 self* the number of seconds of this function's self time 44 the number of seconds of this function's 67 self* the number of seconds of this child's self time 71 the number of seconds of this child's descendent's
|
| /dflybsd-src/contrib/gcc-4.7/libstdc++-v3/src/c++11/ |
| H A D | chrono.cc | 51 return time_point(duration(chrono::seconds(tp.tv_sec) in now() 57 return time_point(duration(chrono::seconds(tv.tv_sec) in now() 74 return time_point(duration(chrono::seconds(tp.tv_sec) in now()
|
| /dflybsd-src/usr.sbin/zic/ |
| H A D | zdump.c | 395 intmax_t myy, seconds, years; in yeartot() local 405 seconds = diff400 * SECSPER400YEARS; in yeartot() 408 seconds = isleap(myy) ? SECSPERLYEAR : SECSPERNYEAR; in yeartot() 412 if (t > absolute_max_time - seconds) in yeartot() 414 t += seconds; in yeartot() 421 seconds = diff400 * SECSPER400YEARS; in yeartot() 424 seconds = isleap(myy - 1) ? SECSPERLYEAR : SECSPERNYEAR; in yeartot() 428 if (t < absolute_min_time + seconds) in yeartot() 430 t -= seconds; in yeartot()
|
| /dflybsd-src/share/examples/sliplogin/ |
| H A D | slip.slparms | 7 # (seconds) (seconds) (number)
|
| /dflybsd-src/usr.bin/fetch/ |
| H A D | fetch.c | 214 stat_seconds(char *str, size_t strsz, long seconds) in stat_seconds() argument 217 if (seconds > 86400) in stat_seconds() 219 seconds / 86400, (seconds % 86400) / 3600); in stat_seconds() 220 else if (seconds > 3600) in stat_seconds() 222 seconds / 3600, (seconds % 3600) / 60); in stat_seconds() 223 else if (seconds > 60) in stat_seconds() 225 seconds / 60, seconds % 60); in stat_seconds() 228 seconds); in stat_seconds()
|