/freebsd/contrib/netbsd-tests/lib/libc/time/ |
H A D | t_mktime.c | 53 if (t->tm_sec != tt.tm_sec || t->tm_min != tt.tm_min || in ATF_TC_BODY() 103 tms.tm_sec = 1; in ATF_TC_BODY() 118 tms.tm_sec = 59; in ATF_TC_BODY() 131 tms.tm_sec = -1; in ATF_TC_BODY() 142 tms.tm_sec = -2; in ATF_TC_BODY()
|
/freebsd/contrib/ntp/libntp/ |
H A D | mktime.c | 176 result = atmp->tm_sec - btmp->tm_sec; in tmcomp() 197 if (yourtm.tm_sec >= SECSPERMIN + 2 || yourtm.tm_sec < 0) in time2() 198 normalize(&yourtm.tm_min, &yourtm.tm_sec, SECSPERMIN); in time2() 218 saved_seconds = yourtm.tm_sec; in time2() 219 yourtm.tm_sec = 0; in time2()
|
H A D | humandate.c | 31 tm->tm_hour, tm->tm_min, tm->tm_sec); in humanlogtime() 56 tm->tm_hour, tm->tm_min, tm->tm_sec); in humantime()
|
H A D | uglydate.c | 38 tm->tm_sec = 0; in uglydate() 46 tm->tm_yday, tm->tm_hour, tm->tm_min, tm->tm_sec, in uglydate()
|
/freebsd/crypto/heimdal/lib/asn1/ |
H A D | timegm.c | 77 if (tm->tm_sec < 0 || tm->tm_sec > 59) in _der_timegm() 91 res += tm->tm_sec; in _der_timegm() 103 tm->tm_sec = secday % 60; in _der_gmtime()
|
/freebsd/contrib/netbsd-tests/lib/libutil/ |
H A D | t_parsedate.c | 109 ATF_CHECK_MSG(tm.tm_sec == second, in parsecheck() 111 argstr, second, (int)tm.tm_sec); in parsecheck() 217 .tm_hour = 13, .tm_min = 21, .tm_sec = 53, in ATF_TC_BODY() 287 tm.tm_sec = tm.tm_min = tm.tm_hour = 0; in ATF_TC_BODY() 293 tm.tm_sec = tm.tm_min = tm.tm_hour = 0; in ATF_TC_BODY() 301 tm.tm_sec = tm.tm_min = 0; in ATF_TC_BODY() 311 tm.tm_sec = tm.tm_min = 0; in ATF_TC_BODY() 386 tm.tm_hour = tm.tm_min = tm.tm_sec = 0; in ATF_TC_BODY() 392 tm.tm_hour = tm.tm_min = tm.tm_sec = 0; in ATF_TC_BODY() 398 tm.tm_hour = tm.tm_min = tm.tm_sec = 0; in ATF_TC_BODY() [all …]
|
/freebsd/crypto/heimdal/lib/roken/ |
H A D | timegm.c | 69 if (tm->tm_sec < 0 || tm->tm_sec > 59) in rk_timegm() 83 res += tm->tm_sec; in rk_timegm()
|
H A D | strftime.c | 207 tm->tm_sec); in strftime() 281 tm->tm_sec, in strftime() 296 "%02d", tm->tm_sec); in strftime() 307 tm->tm_sec); in strftime()
|
/freebsd/bin/date/ |
H A D | vary.c | 382 if (!adjmin(t, '+', (t->tm_sec + val) / 60, 0)) in adjsec() 385 t->tm_sec += val; in adjsec() 386 if (t->tm_sec > 59) in adjsec() 387 t->tm_sec -= 60; in adjsec() 396 if (val > t->tm_sec) { in adjsec() 401 t->tm_sec -= val; in adjsec() 408 t->tm_sec = val; in adjsec()
|
/freebsd/usr.sbin/efiwake/ |
H A D | efiwake.c | 74 &waketime.waketime.tm_sec) != 6) { in main() 103 now.tm_sec); in main() 135 waketime.waketime.tm_min, waketime.waketime.tm_sec, in main()
|
/freebsd/contrib/tzcode/ |
H A D | zdump.c | 380 fprintf(stderr, " sec=%d", tmp->tm_sec); in my_localtime_rz() 791 result += newp->tm_sec - oldp->tm_sec; in delta_nonneg() 841 long seconds = a->tm_sec - b->tm_sec + 60 * minutes; in gmtoff() 908 localtm[old].tm_sec = -1; in showextrema() 910 gmtm[old].tm_sec = -1; in showextrema() 919 localtm[new].tm_sec = -1; in showextrema() 921 gmtm[new].tm_sec = -1; in showextrema() 922 if (((localtm[old].tm_sec < in showextrema() [all...] |
H A D | localtime.c | 1861 to localtime tm_sec because of leap seconds. */ in offtime() 1945 tmp->tm_sec = rem % SECSPERMIN; in timesub() 1949 tmp->tm_sec += secs_since_posleap <= tmp->tm_sec; in timesub() 2071 result = atmp->tm_sec - btmp->tm_sec; in increment_overflow32() 2080 dest->tm_sec = src->tm_sec; in increment_overflow_time() 2116 if (normalize_overflow(&yourtm.tm_min, &yourtm.tm_sec, in normalize_overflow32() 2166 if (yourtm.tm_sec > in time2sub() [all...] |
/freebsd/crypto/openssl/crypto/asn1/ |
H A D | a_time.c | 185 tmp.tm_sec = n; in ossl_asn1_time_to_tm() 302 ts->tm_sec); in ossl_asn1_time_from_tm() 307 ts->tm_sec); in ossl_asn1_time_from_tm() 523 stm.tm_min, stm.tm_sec, f_len, f, in ossl_asn1_time_print_ex() 529 stm.tm_min, stm.tm_sec, f_len, f, stm.tm_year + 1900, in ossl_asn1_time_print_ex() 537 stm.tm_min, stm.tm_sec, in ossl_asn1_time_print_ex() 543 stm.tm_min, stm.tm_sec, stm.tm_year + 1900, in ossl_asn1_time_print_ex()
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | bsd-timegm.c | 62 tm->tm_sec > 60 || in timegm() 79 res += tm->tm_sec; in timegm()
|
/freebsd/usr.bin/calendar/ |
H A D | pom.c | 113 tmd_today.tm_sec = 59; in fpom() 120 tmd_tomorrow.tm_sec = 1; in fpom() 128 (GMT.tm_min / FSECSPERMINUTE) + (GMT.tm_sec / FSECSPERHOUR)) / in fpom() 138 (GMT.tm_min / FSECSPERMINUTE) + (GMT.tm_sec / FSECSPERHOUR)) / in fpom()
|
/freebsd/crypto/openssl/test/ |
H A D | gmdifftest.c | 41 || !TEST_int_eq(tm1.tm_sec, tm2.tm_sec) in check_time()
|
/freebsd/usr.bin/pom/ |
H A D | pom.c | 123 tmd.tm_sec = 0; in main() 129 tmd.tm_sec = strtol(otime + 6, NULL, 10); in main() 137 (GMT.tm_min / 60.0) + (GMT.tm_sec / 3600.0)) / 24.0); in main()
|
/freebsd/contrib/llvm-project/libcxx/include/__chrono/ |
H A D | convert_to_tm.h | 96 __result.tm_sec = __sec % 60; in __convert_to_tm() 132 __result.tm_sec = __sec.count() % 60; in __convert_to_tm() 139 __result.tm_sec = __sec % 60; in __convert_to_tm() 169 __result.tm_sec = __value.seconds().count(); in __convert_to_tm()
|
/freebsd/usr.sbin/newsyslog/ |
H A D | ptimes.c | 183 tm.tm_sec = l % 100; in parse8601() 201 if (tm.tm_sec < 0 || tm.tm_sec > 60 || tm.tm_min < 0 in parse8601() 401 ptime->tm.tm_hour = ptime->tm.tm_min = ptime->tm.tm_sec = 0; in ptime_relparse() 548 tm.tm_hour, tm.tm_min, tm.tm_sec, in ptimeget_ctime_rfc5424()
|
/freebsd/contrib/lua/src/ |
H A D | loslib.c | 85 #define l_gmtime(t,r) ((void)(r)->tm_sec, gmtime(t)) 86 #define l_localtime(t,r) ((void)(r)->tm_sec, localtime(t)) 236 setfield(L, "sec", stm->tm_sec, 0); in setallfields() 357 ts.tm_sec = getfield(L, "sec", 0, 0); in os_time()
|
/freebsd/usr.sbin/makefs/cd9660/ |
H A D | cd9660_conversion.c | 180 (int)t.tm_sec, in cd9660_time_8426() 198 buf[5] = t.tm_sec; in cd9660_time_915()
|
/freebsd/sys/dev/efidev/ |
H A D | efirtc.c | 139 ct.sec = tm.tm_sec; in efirtc_gettime() 170 tm.tm_sec = ct.sec; in efirtc_settime()
|
/freebsd/usr.bin/touch/ |
H A D | touch.c | 226 t->tm_sec = 0; /* Seconds defaults to 0. */ in stime_arg1() 231 t->tm_sec = ATOI2(p); in stime_arg1() 313 struct tm t = { .tm_sec = 0 }; in stime_darg()
|
/freebsd/contrib/file/src/ |
H A D | cdf_time.c | 111 tm.tm_sec = CAST(int, t % 60); in cdf_timestamp_to_timespec() 160 *t += tm.tm_sec; in cdf_timespec_to_timestamp()
|
/freebsd/usr.sbin/pw/ |
H A D | psdate.c | 135 t->tm_sec = tm.tm_sec; in parse_datesub()
|