Home
last modified time | relevance | path

Searched refs:tm_year (Results 1 – 11 of 11) sorted by relevance

/bionic/libc/bionic/
Dtime64.c200 Year orig_year = (Year)date->tm_year; in timegm64()
258 assert(tm->tm_mday <= days_in_month[IS_LEAP(tm->tm_year)][tm->tm_mon]); in check_tm()
267 assert(tm->tm_yday <= length_of_year[IS_LEAP(tm->tm_year)]); in check_tm()
373 dest->tm_year = (Year)src->tm_year; in copy_tm_to_TM()
405 dest->tm_year = (int)src->tm_year; in copy_TM_to_tm()
490 Year year = input_date->tm_year + 1900; in mktime64()
499 date.tm_year = safe_year(year) - 1900; in mktime64()
504 time += seconds_between_years(year, (Year)(safe_date.tm_year + 1900)); in mktime64()
620 p->tm_year = year; in gmtime64_r()
621 if( p->tm_year != year ) { in gmtime64_r()
[all …]
/bionic/tests/
Dtime_test.cpp68 ASSERT_EQ(1970, broken_down->tm_year + 1900); in TEST()
81 ASSERT_EQ(1970, broken_down->tm_year + 1900); in TEST()
115 t.tm_year = 1980 - 1900; in TEST()
124 t.tm_year = 1980 - 1900; in TEST()
136 t.tm_year = 200; in TEST()
167 t.tm_year = 2016 - 1900; in TEST()
177 t.tm_year = INT_MAX; in TEST()
189 t.tm_year = 200; in TEST()
252 t.tm_year = 200; in TEST()
304 EXPECT_EQ(119, tm.tm_year); in TEST()
[all …]
Dwchar_test.cpp569 t.tm_year = 200; in TEST()
/bionic/libc/tzcode/
Dstrptime.c426 tm->tm_year = i - TM_YEAR_BASE; in _strptime()
460 tm->tm_year = cr->relyear + 2000 - TM_YEAR_BASE; in _strptime()
462 tm->tm_year = cr->relyear + 1900 - TM_YEAR_BASE; in _strptime()
464 tm->tm_year = cr->relyear + cr->century - TM_YEAR_BASE; in _strptime()
Dstrftime.c237 pt = _yconv(t->tm_year, TM_YEAR_BASE, in _fmt()
420 year = t->tm_year; in _fmt()
516 pt = _yconv(t->tm_year, TM_YEAR_BASE, in _fmt()
521 pt = _yconv(t->tm_year, TM_YEAR_BASE, in _fmt()
Dlocaltime.c1436 newy = result->tm_year; in localsub()
1442 result->tm_year = newy; in localsub()
1671 tmp->tm_year = y; in timesub()
1672 if (increment_overflow(&tmp->tm_year, -TM_YEAR_BASE)) in timesub()
1822 if (atmp->tm_year != btmp->tm_year) in tmcomp()
1823 return atmp->tm_year < btmp->tm_year ? -1 : 1; in tmcomp()
1863 y = yourtm.tm_year; in time2sub()
1899 yourtm.tm_year = y; in time2sub()
/bionic/libc/kernel/uapi/linux/
Drtc.h27 int tm_year; member
/bionic/libc/upstream-openbsd/lib/libc/time/
Dwcsftime.c186 pt = _yconv(t->tm_year, TM_YEAR_BASE, 1, 0, in _fmt()
351 year = t->tm_year; in _fmt()
435 pt = _yconv(t->tm_year, TM_YEAR_BASE, 0, 1, pt, ptlim); in _fmt()
438 pt = _yconv(t->tm_year, TM_YEAR_BASE, 1, 1, pt, ptlim); in _fmt()
/bionic/libc/include/
Dtime.h52 int tm_year; member
/bionic/tests/headers/posix/
Dtime_h.c53 STRUCT_MEMBER(struct tm, int, tm_year); in time_h()
/bionic/libc/dns/resolv/
Dres_debug.c1173 mytime->tm_year += 1900; in p_secstodate()
1176 mytime->tm_year, mytime->tm_mon, mytime->tm_mday, in p_secstodate()