| /freebsd-14.2/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-14.2/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-14.2/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-14.2/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() 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() 405 tm.tm_min = tm.tm_sec = 0; in ATF_TC_BODY() [all …]
|
| /freebsd-14.2/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-14.2/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-14.2/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-14.2/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 < 0) != (localtm[new].tm_sec < 0)) in showextrema() 923 | ((gmtm[old].tm_sec < 0) != (gmtm[new].tm_sec < 0))) { in showextrema() 977 int ss = tm->tm_sec, mm = tm->tm_min, hh = tm->tm_hour; in format_local_time() [all …]
|
| H A D | localtime.c | 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 tmcomp() 2080 dest->tm_sec = src->tm_sec; in mktmcpy() 2166 if (yourtm.tm_sec >= 0 && yourtm.tm_sec < SECSPERMIN) in time2sub() 2179 saved_seconds = yourtm.tm_sec; in time2sub() 2180 yourtm.tm_sec = SECSPERMIN - 1; in time2sub() 2182 saved_seconds = yourtm.tm_sec; in time2sub() 2183 yourtm.tm_sec = 0; in time2sub() 2375 tmp->tm_sec += (sp->ttis[otheri].tt_utoff in time1() [all …]
|
| /freebsd-14.2/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) > 0; in ossl_asn1_time_print_ex() 527 stm.tm_min, stm.tm_sec, f_len, f, in ossl_asn1_time_print_ex() 536 stm.tm_min, stm.tm_sec) > 0; in ossl_asn1_time_print_ex() 540 stm.tm_min, stm.tm_sec, stm.tm_year + 1900) > 0; in ossl_asn1_time_print_ex()
|
| /freebsd-14.2/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-14.2/usr.bin/calendar/ |
| H A D | pom.c | 125 tmd_today.tm_sec = 59; in fpom() 132 tmd_tomorrow.tm_sec = 1; in fpom() 140 (GMT.tm_min / FSECSPERMINUTE) + (GMT.tm_sec / FSECSPERHOUR)) / in fpom() 150 (GMT.tm_min / FSECSPERMINUTE) + (GMT.tm_sec / FSECSPERHOUR)) / in fpom()
|
| /freebsd-14.2/crypto/openssl/test/ |
| H A D | gmdifftest.c | 41 || !TEST_int_eq(tm1.tm_sec, tm2.tm_sec) in check_time()
|
| /freebsd-14.2/contrib/llvm-project/libcxx/include/__chrono/ |
| H A D | convert_to_tm.h | 92 __result.tm_sec = __sec % 60; in __convert_to_tm() 128 __result.tm_sec = __sec.count() % 60; in __convert_to_tm() 135 __result.tm_sec = __sec % 60; in __convert_to_tm() 165 __result.tm_sec = __value.seconds().count(); in __convert_to_tm()
|
| /freebsd-14.2/usr.bin/pom/ |
| H A D | pom.c | 135 tmd.tm_sec = 0; in main() 141 tmd.tm_sec = strtol(otime + 6, NULL, 10); in main() 149 (GMT.tm_min / 60.0) + (GMT.tm_sec / 3600.0)) / 24.0); in main()
|
| /freebsd-14.2/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-14.2/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-14.2/sys/dev/efidev/ |
| H A D | efirtc.c | 140 ct.sec = tm.tm_sec; in efirtc_gettime() 171 tm.tm_sec = ct.sec; in efirtc_settime()
|
| /freebsd-14.2/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-14.2/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-14.2/usr.sbin/pw/ |
| H A D | psdate.c | 135 t->tm_sec = tm.tm_sec; in parse_datesub()
|
| /freebsd-14.2/usr.bin/touch/ |
| H A D | touch.c | 237 t->tm_sec = 0; /* Seconds defaults to 0. */ in stime_arg1() 242 t->tm_sec = ATOI2(p); in stime_arg1() 324 struct tm t = { .tm_sec = 0 }; in stime_darg()
|