Home
last modified time | relevance | path

Searched refs:tm_sec (Results 1 – 25 of 170) sorted by relevance

1234567

/freebsd/contrib/netbsd-tests/lib/libc/time/
H A Dt_mktime.c53 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 Dmktime.c176 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 Dhumandate.c31 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 Duglydate.c38 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 Dtimegm.c77 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 Dt_parsedate.c109 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 Dtimegm.c69 if (tm->tm_sec < 0 || tm->tm_sec > 59) in rk_timegm()
83 res += tm->tm_sec; in rk_timegm()
H A Dstrftime.c207 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 Dvary.c382 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 Defiwake.c74 &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 Dzdump.c380 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 Dlocaltime.c1861 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 Da_time.c185 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 Dbsd-timegm.c62 tm->tm_sec > 60 || in timegm()
79 res += tm->tm_sec; in timegm()
/freebsd/usr.bin/calendar/
H A Dpom.c113 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 Dgmdifftest.c41 || !TEST_int_eq(tm1.tm_sec, tm2.tm_sec) in check_time()
/freebsd/usr.bin/pom/
H A Dpom.c123 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 Dconvert_to_tm.h96 __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 Dptimes.c183 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 Dloslib.c85 #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 Dcd9660_conversion.c180 (int)t.tm_sec, in cd9660_time_8426()
198 buf[5] = t.tm_sec; in cd9660_time_915()
/freebsd/sys/dev/efidev/
H A Defirtc.c139 ct.sec = tm.tm_sec; in efirtc_gettime()
170 tm.tm_sec = ct.sec; in efirtc_settime()
/freebsd/usr.bin/touch/
H A Dtouch.c226 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 Dcdf_time.c111 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 Dpsdate.c135 t->tm_sec = tm.tm_sec; in parse_datesub()

1234567