Home
last modified time | relevance | path

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

12345678

/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/krb5/src/util/support/
H A Dgmt_mktime.c100 assert_time(t->tm_sec>=0); in gmt_mktime()
101 assert_time(t->tm_sec<=62); in gmt_mktime()
125 accum += t->tm_sec; in gmt_mktime()
139 .tm_hour = 0, .tm_min = 0, .tm_sec = 0, in main()
/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.c384 if (!adjmin(t, '+', (t->tm_sec + val) / 60, 0)) in adjsec()
387 t->tm_sec += val; in adjsec()
388 if (t->tm_sec > 59) in adjsec()
389 t->tm_sec -= 60; in adjsec()
398 if (val > t->tm_sec) { in adjsec()
403 t->tm_sec -= val; in adjsec()
410 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.c731 result += newp->tm_sec - oldp->tm_sec; in delta_nonneg()
781 long seconds = a->tm_sec - b->tm_sec + 60 * minutes; in gmtoff()
848 localtm[old].tm_sec = -1; in showextrema()
850 gmtm[old].tm_sec = -1; in showextrema()
859 localtm[new].tm_sec = -1; in showextrema()
861 gmtm[new].tm_sec = -1; in showextrema()
862 if (((localtm[old].tm_sec < 0) != (localtm[new].tm_sec < 0)) in showextrema()
863 | ((gmtm[old].tm_sec < 0) != (gmtm[new].tm_sec < 0))) { in showextrema()
917 int ss = tm->tm_sec, mm = tm->tm_min, hh = tm->tm_hour; in format_local_time()
1195 timeptr->tm_min, timeptr->tm_sec); in dumptime()
H A Dlocaltime.c2404 tmp->tm_sec = rem % SECSPERMIN; in timesub()
2408 tmp->tm_sec += secs_since_posleap <= tmp->tm_sec; in timesub()
2522 result = atmp->tm_sec - btmp->tm_sec; in tmcomp()
2531 dest->tm_sec = src->tm_sec; in mktmcpy()
2566 min += yourtm.tm_sec / SECSPERMIN; in time2sub()
2567 yourtm.tm_sec %= SECSPERMIN; in time2sub()
2568 if (yourtm.tm_sec < 0) { in time2sub()
2569 yourtm.tm_sec += SECSPERMIN; in time2sub()
2634 if (yourtm.tm_sec >= 0 && yourtm.tm_sec < SECSPERMIN) in time2sub()
2645 saved_seconds = yourtm.tm_sec; in time2sub()
[all …]
/freebsd/crypto/openssl/crypto/asn1/
H A Da_time.c183 tmp.tm_sec = n; in ossl_asn1_time_to_tm()
305 ts->tm_sec); in ossl_asn1_time_from_tm()
310 ts->tm_sec); in ossl_asn1_time_from_tm()
524 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, in ossl_asn1_time_print_ex()
539 stm.tm_min, stm.tm_sec) in ossl_asn1_time_print_ex()
544 stm.tm_min, stm.tm_sec, stm.tm_year + 1900) in ossl_asn1_time_print_ex()
/freebsd/contrib/llvm-project/libcxx/include/__chrono/
H A Dconvert_to_tm.h100 __result.tm_sec = __sec % 60; in __convert_to_tm()
113 ++__result.tm_sec; in __convert_to_tm()
169 __result.tm_sec = __sec.count() % 60; in __convert_to_tm()
176 __result.tm_sec = __sec % 60; in __convert_to_tm()
206 __result.tm_sec = __value.seconds().count(); in __convert_to_tm()
/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/openssh/openbsd-compat/
H A Dbsd-timegm.c62 tm->tm_sec > 60 || in timegm()
79 res += tm->tm_sec; in timegm()
/freebsd/sys/compat/linuxkpi/common/src/
H A Dlinux_timesub.c165 tmp->tm_sec = rem % SECSPERMIN; in timesub()
169 tmp->tm_sec += secs_since_posleap <= tmp->tm_sec; in timesub()
/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.c124 tmd.tm_sec = 0; in main()
130 tmd.tm_sec = strtol(otime + 6, NULL, 10); in main()
138 (GMT.tm_min / 60.0) + (GMT.tm_sec / 3600.0)) / 24.0); in main()
/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))
238 setfield(L, "sec", stm->tm_sec, 0); in setallfields()
359 ts.tm_sec = getfield(L, "sec", 0, 0); in os_time()
/freebsd/usr.bin/touch/
H A Dtouch.c221 t->tm_sec = 0; /* Seconds defaults to 0. */ in stime_arg1()
226 t->tm_sec = ATOI2(p); in stime_arg1()
308 struct tm t = { .tm_sec = 0 }; in stime_darg()
/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.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()

12345678