Home
last modified time | relevance | path

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

123456

/netbsd/src/tests/lib/libc/time/
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()
/netbsd/src/external/bsd/ntp/dist/libntp/
Dmktime.c178 result = atmp->tm_sec - btmp->tm_sec; in tmcomp()
199 if (yourtm.tm_sec >= SECSPERMIN + 2 || yourtm.tm_sec < 0) in time2()
200 normalize(&yourtm.tm_min, &yourtm.tm_sec, SECSPERMIN); in time2()
220 saved_seconds = yourtm.tm_sec; in time2()
221 yourtm.tm_sec = 0; in time2()
Dhumandate.c33 tm->tm_hour, tm->tm_min, tm->tm_sec); in humanlogtime()
58 tm->tm_hour, tm->tm_min, tm->tm_sec); in humantime()
Duglydate.c40 tm->tm_sec = 0; in uglydate()
48 tm->tm_yday, tm->tm_hour, tm->tm_min, tm->tm_sec, in uglydate()
/netbsd/src/lib/libc/time/
Dgetdate.c97 rtm.tm_sec = rtm.tm_min = rtm.tm_hour = TMSENTINEL; in getdate()
188 rtm.tm_min == TMSENTINEL && rtm.tm_sec == TMSENTINEL) { in getdate()
191 rtm.tm_sec = tmnow.tm_sec; in getdate()
215 if (rtm.tm_sec == TMSENTINEL) in getdate()
216 rtm.tm_sec = 0; in getdate()
Dzdump.c363 (void) fprintf(stderr, " sec=%d", tmp->tm_sec);
778 result += newp->tm_sec - oldp->tm_sec;
828 long seconds = a->tm_sec - b->tm_sec + 60 * minutes;
895 localtm[old].tm_sec = -1;
897 gmtm[old].tm_sec = -1;
906 localtm[new].tm_sec = -1;
908 gmtm[new].tm_sec = -1;
909 if (((localtm[old].tm_sec < 0) != (localtm[new].tm_sec < 0))
910 | ((gmtm[old].tm_sec < 0) != (gmtm[new].tm_sec < 0))) {
962 int ss = tm->tm_sec, mm = tm->tm_min, hh = tm->tm_hour;
[all …]
Dlocaltime.c2023 tmp->tm_sec = (int)(rem % SECSPERMIN); in timesub()
2027 tmp->tm_sec += secs_since_posleap <= tmp->tm_sec; in timesub()
2125 result = atmp->tm_sec - btmp->tm_sec; in tmcomp()
2134 dest->tm_sec = src->tm_sec; in mktmcpy()
2175 min += yourtm.tm_sec / SECSPERMIN; in time2sub()
2176 yourtm.tm_sec %= SECSPERMIN; in time2sub()
2177 if (yourtm.tm_sec < 0) { in time2sub()
2178 yourtm.tm_sec += SECSPERMIN; in time2sub()
2242 if (yourtm.tm_sec >= 0 && yourtm.tm_sec < SECSPERMIN) in time2sub()
2253 saved_seconds = yourtm.tm_sec; in time2sub()
[all …]
/netbsd/src/external/ibm-public/postfix/dist/src/global/
Dmail_date.c94 if (lt->tm_sec <= gmt.tm_sec - MIN_SEC) in mail_date()
96 else if (lt->tm_sec >= gmt.tm_sec + MIN_SEC) in mail_date()
/netbsd/src/crypto/external/bsd/heimdal/dist/lib/asn1/
Dtimegm.c79 if (tm->tm_sec < 0 || tm->tm_sec > 59) in _der_timegm()
93 res += tm->tm_sec; in _der_timegm()
105 tm->tm_sec = secday % 60; in _der_gmtime()
/netbsd/src/tests/lib/libutil/
Dt_parsedate.c112 ATF_CHECK_MSG(tm.tm_sec == second, in parsecheck()
114 argstr, second, (int)tm.tm_sec); in parsecheck()
267 .tm_hour = 13, .tm_min = 21, .tm_sec = 53, in ATF_TC_BODY()
337 tm.tm_sec = tm.tm_min = tm.tm_hour = 0; in ATF_TC_BODY()
343 tm.tm_sec = tm.tm_min = tm.tm_hour = 0; in ATF_TC_BODY()
351 tm.tm_sec = tm.tm_min = 0; in ATF_TC_BODY()
361 tm.tm_sec = tm.tm_min = 0; in ATF_TC_BODY()
436 tm.tm_hour = tm.tm_min = tm.tm_sec = 0; in ATF_TC_BODY()
442 tm.tm_hour = tm.tm_min = tm.tm_sec = 0; in ATF_TC_BODY()
448 tm.tm_hour = tm.tm_min = tm.tm_sec = 0; in ATF_TC_BODY()
[all …]
/netbsd/src/crypto/external/bsd/heimdal/dist/lib/roken/
Dtimegm.c71 if (tm->tm_sec < 0 || tm->tm_sec > 59) in rk_timegm()
85 res += tm->tm_sec; in rk_timegm()
Dstrftime.c209 tm->tm_sec); in strftime()
283 tm->tm_sec, in strftime()
298 "%02d", tm->tm_sec); in strftime()
309 tm->tm_sec); in strftime()
/netbsd/src/external/gpl2/xcvs/dist/lib/
Dmktime.c212 tp->tm_hour, tp->tm_min, tp->tm_sec); in guess_time_tm()
291 int sec = tp->tm_sec; in __mktime_internal()
481 if (LEAP_SECONDS_POSSIBLE && sec_requested != tm.tm_sec) in __mktime_internal()
485 int sec_adjustment = (sec == 0 && tm.tm_sec == 60) - sec; in __mktime_internal()
534 return ((a->tm_sec ^ b->tm_sec) in weak_alias()
550 tp->tm_hour, tp->tm_min, tp->tm_sec, in print_tm()
586 &tm.tm_hour, &tm.tm_min, &tm.tm_sec, &trailer) in main()
/netbsd/src/crypto/external/bsd/openssl/dist/crypto/asn1/
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) > 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()
/netbsd/src/external/gpl2/xcvs/dist/m4/
Dmktime.m477 tm.tm_sec = 0;
111 tm.tm_sec = 0;
124 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
135 && lt->tm_sec == tm.tm_sec
/netbsd/src/bin/date/
Ddate.c328 tm.tm_sec = ATOI2(string); in parse_iso_datetime()
329 if (tm.tm_sec >= 60) in parse_iso_datetime()
417 lt->tm_sec = ATOI2(dot); in setthetime()
418 if (lt->tm_sec > 61) in setthetime()
422 lt->tm_sec = 0; in setthetime()
/netbsd/src/external/bsd/ntp/dist/tests/libntp/
Dhumandate.c34 snprintf(expected, 15, "%02d:%02d:%02d", tm->tm_hour, tm->tm_min, tm->tm_sec); in test_RegularTime()
53 snprintf(expected, 15, "%02d:%02d:%02d", tm->tm_hour, tm->tm_min, tm->tm_sec); in test_CurrentTime()
/netbsd/src/external/bsd/openldap/dist/libraries/liblutil/
Dutils.c171 tm->tm_hour == 0 && tm->tm_min == 0 && tm->tm_sec == 0 ) { in lutil_tm2time()
213 sec += tm->tm_sec; in lutil_tm2time()
285 sec += tm->tm_sec; in lutil_tm2gtime()
347 tm->tm_sec = *ptr++ - '0'; in lutil_parsetime()
348 tm->tm_sec *=10; tm->tm_sec += *ptr++ - '0'; in lutil_parsetime()
349 if (tm->tm_sec < 0 || tm->tm_sec > 61) break; in lutil_parsetime()
/netbsd/src/crypto/external/bsd/openssl/dist/test/
Dgmdifftest.c41 || !TEST_int_eq(tm1.tm_sec, tm2.tm_sec) in check_time()
/netbsd/src/external/bsd/openldap/dist/libraries/libldap/
Dutil-int.c332 tm->tm_sec = st.wSecond; in ldap_pvt_gettime()
340 sec0 = tm->tm_sec % 10; in ldap_pvt_gettime()
342 tm->tm_sec++; in ldap_pvt_gettime()
344 if (tm->tm_sec > 59) { in ldap_pvt_gettime()
345 tm->tm_sec = 0; in ldap_pvt_gettime()
419 ltm->tm_sec = tm.tm_sec; in ldap_pvt_gettime()
440 tm.tm_min, tm.tm_sec, tm.tm_nsec / 1000, tm.tm_usub, replica, mod ); in ldap_pvt_csnstr()
/netbsd/src/usr.bin/at/
Dstime.c70 t->tm_sec = 0; /* Seconds defaults to 0. */ in stime()
75 t->tm_sec = ATOI2(p); in stime()
/netbsd/src/lib/libresolv/
Dns_date.c73 tim.tm_sec = datepart(cp + 12, 2, 00, 59, errp); in ns_datetosecs()
85 result = tim.tm_sec; /*%< Seconds */ in ns_datetosecs()
/netbsd/src/external/bsd/libbind/dist/nameser/
Dns_date.c76 time.tm_sec = datepart(cp + 12, 2, 00, 59, errp); in ns_datetosecs()
88 result = time.tm_sec; /*%< Seconds */ in ns_datetosecs()
/netbsd/src/usr.bin/touch/
Dtouch.c262 t->tm_sec = 0; /* Seconds defaults to 0. */ in stime_arg1()
267 t->tm_sec = ATOI2(p); in stime_arg1()
338 t->tm_sec = 0; in stime_arg2()
445 tm.tm_sec = (int)val; in stime_posix()
/netbsd/src/external/mit/lua/dist/src/
Dloslib.c87 #define l_gmtime(t,r) ((void)(r)->tm_sec, gmtime(t))
88 #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()

123456