Home
last modified time | relevance | path

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

12

/glibc-2.36/time/
Dgetdate.c63 tm.tm_year = year; in first_wday()
191 tp->tm_year = tp->tm_mon = tp->tm_mday = tp->tm_wday = INT_MIN; in __getdate_r()
226 if (tp->tm_wday >= 0 && tp->tm_wday <= 6 && tp->tm_year == INT_MIN in __getdate_r()
229 tp->tm_year = tm.tm_year; in __getdate_r()
241 if (tp->tm_year == INT_MIN) in __getdate_r()
242 tp->tm_year = tm.tm_year + (((tp->tm_mon - tm.tm_mon) < 0) ? 1 : 0); in __getdate_r()
243 tp->tm_mday = first_wday (tp->tm_year, tp->tm_mon, tp->tm_wday); in __getdate_r()
277 if (tp->tm_year == INT_MIN) in __getdate_r()
278 tp->tm_year = tm.tm_year; in __getdate_r()
285 if ((!mday_ok && !check_mday (TM_YEAR_BASE + tp->tm_year, tp->tm_mon, in __getdate_r()
Dstrptime_l.c216 int corr_year = 1900 + tm->tm_year - (tm->tm_mon < 2); in day_of_the_week()
218 + (365 * (tm->tm_year - 70)) in day_of_the_week()
231 tm->tm_yday = (__mon_yday[__isleap (1900 + tm->tm_year)][tm->tm_mon] in day_of_the_year()
757 tm->tm_year = val >= 69 ? val : val + 100; in __strptime_internal()
765 tm->tm_year = val - 1900; in __strptime_internal()
895 tm->tm_year = val; in __strptime_internal()
908 int delta = ((tm->tm_year - era->offset) in __strptime_internal()
934 int delta = ((tm->tm_year - era->offset) in __strptime_internal()
988 tm->tm_year = val - 1900; in __strptime_internal()
1130 tm->tm_year = val >= 69 ? val : val + 100; in __strptime_internal()
[all …]
Dtst-mktime3.c9 { .tm_sec = -1, .tm_mday = 1, .tm_year = 104 },
11 .tm_mon = 11, .tm_year = 101 }
16 .tm_mon = 11, .tm_year = 103, .tm_wday = 3, .tm_yday = 364 },
17 { .tm_sec = 5, .tm_mday = 1, .tm_year = 102, .tm_wday = 2 }
44 CHECK (tm_year) in do_test()
Dtst-gmtime.c35 TEST_COMPARE (tmg->tm_year, 70); in do_test()
51 TEST_COMPARE (tmg->tm_year, 70); in do_test()
66 TEST_COMPARE (tmg->tm_year, 138); in do_test()
82 TEST_COMPARE (tmg->tm_year, 138); in do_test()
99 TEST_COMPARE (tmg->tm_year, 138); in do_test()
115 TEST_COMPARE (tmg->tm_year, 138); in do_test()
Dtst-mktime2.c64 tm.tm_year = 98; in spring_forward_gap()
103 tm.tm_year = 96; in irix_6_4_bug()
120 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; in bigtime_test()
126 TEST_COMPARE (lt->tm_year, tm.tm_year); in bigtime_test()
Dtest_time.c50 tbuf.tm_year = 72; in main()
77 if (tbuf.tm_year == 101) in main()
79 tbuf.tm_year = 97; in main()
103 loctime->tm_year = 72; in main()
Dtst-getdate.c127 TEST_COMPARE (tests[i].tm.tm_year, tm->tm_year); in do_test()
139 TEST_COMPARE (tests[i].tm.tm_year, tms.tm_year); in do_test()
Dtst-timegm.c34 .tm_year = 70, in do_test_func()
51 .tm_year = 138, in do_test_func()
71 .tm_year = 138, in do_test_func()
Dtst-mktime4.c25 .tm_year = 70,
37 .tm_year = 138,
47 .tm_year = 206,
Dbug-mktime4.c13 && t->tm_mon == u->tm_mon && t->tm_year == u->tm_year in equal_tm()
39 struct tm tm0 = { .tm_year = INT_MIN, .tm_mday = 1, .tm_wday = -1 }; in do_test()
Dstrftime_l.c363 int a4 = (a->tm_year >> 2) + (TM_YEAR_BASE >> 2) - ! (a->tm_year & 3); in tm_diff()
364 int b4 = (b->tm_year >> 2) + (TM_YEAR_BASE >> 2) - ! (b->tm_year & 3); in tm_diff()
370 int years = a->tm_year - b->tm_year; in tm_diff()
910 int year = tp->tm_year + TM_YEAR_BASE; in libc_hidden_def()
1217 int year = tp->tm_year + TM_YEAR_BASE; in libc_hidden_def()
1289 DO_NUMBER (1, tp->tm_year + TM_YEAR_BASE); in libc_hidden_def()
1298 int delta = tp->tm_year - era->start_date[0]; in libc_hidden_def()
1310 DO_NUMBER (2, (tp->tm_year % 100 + 100) % 100); in libc_hidden_def()
1395 | (ltm.tm_year ^ tm.tm_year))) in libc_hidden_def()
Dtst-strptime3.c30 || tm.tm_mday != 12 || tm.tm_mon != 1 || tm.tm_year != 107 in do_test()
44 || tm.tm_mday != 8 || tm.tm_mon != 1 || tm.tm_year != 107 in do_test()
Dasctime.c49 if (__glibc_unlikely (tp->tm_year > INT_MAX - 1900)) in asctime_internal()
62 tp->tm_sec, 1900 + tp->tm_year); in asctime_internal()
Dofftime.c71 tp->tm_year = y - 1900; in __offtime()
72 if (tp->tm_year != y - 1900) in __offtime()
Dtst-strftime3.c453 tm->tm_year + 1900, in tm_to_printed()
482 tm.tm_year = d->y - 1900; in do_test()
Dbug-asctime_r.c13 tp->tm_year = 10000 - 1900; in do_test()
Dbug-asctime.c13 tp->tm_year = INT_MAX; in do_test()
Dtst-mktime.c14 time_str.tm_year = 2001 - 1900; in do_test()
Dmktime.c249 tp->tm_year, tp->tm_yday, in tm_diff()
340 int year_requested = tp->tm_year; in __mktime_internal()
Dtst-ftime_l.c29 tm.tm_year = 102; in do_test()
/glibc-2.36/resolv/
Dns_date.c57 time.tm_year = datepart(cp + 0, 4, 1990, 9999, errp) - 1900; in ns_datetosecs()
83 if (time.tm_mon > 1 && isleap(1900+time.tm_year)) in ns_datetosecs()
87 result += (time.tm_year - 70) * (SECS_PER_DAY*365); /*%< Years */ in ns_datetosecs()
88 for (i = 70; i < time.tm_year; i++) in ns_datetosecs()
/glibc-2.36/timezone/
Dzdump.c303 fprintf(stderr, " year=%d", tmp->tm_year); in my_localtime_rz()
692 for (tmy = oldp->tm_year; tmy < newp->tm_year; ++tmy) in delta_nonneg()
707 return (newp->tm_year < oldp->tm_year in delta()
719 if (b->tm_year < a->tm_year) in adjusted_yday()
720 yday += 365 + isleap_sum(b->tm_year, TM_YEAR_BASE); in adjusted_yday()
1106 trail = timeptr->tm_year % DIVISOR + TM_YEAR_BASE % DIVISOR; in dumptime()
1107 lead = timeptr->tm_year / DIVISOR + TM_YEAR_BASE / DIVISOR + in dumptime()
Dtst-timezone.c132 tmBuf.tm_mday, tmBuf.tm_mon, tmBuf.tm_year, in do_test()
155 tmBuf.tm_mday, tmBuf.tm_mon, tmBuf.tm_year, in do_test()
Dtest-tz.c28 tm.tm_year = 96; /* years since 1900 */ in main()
/glibc-2.36/time/bits/types/
Dstruct_tm.h14 int tm_year; /* Year - 1900. */ member

12