Home
last modified time | relevance | path

Searched refs:tm_wday (Results 1 – 22 of 22) sorted by relevance

/glibc-2.36/time/
Dgetdate.c68 return (1 + (wday - tm.tm_wday + 7) % 7); 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()
231 tp->tm_mday = tm.tm_mday + (tp->tm_wday - tm.tm_wday + 7) % 7; in __getdate_r()
243 tp->tm_mday = first_wday (tp->tm_year, tp->tm_mon, tp->tm_wday); in __getdate_r()
269 && tp->tm_mday == INT_MIN && tp->tm_wday == INT_MIN) in __getdate_r()
Dbug-mktime4.c14 && t->tm_wday == u->tm_wday && t->tm_yday == u->tm_yday in equal_tm()
39 struct tm tm0 = { .tm_year = INT_MIN, .tm_mday = 1, .tm_wday = -1 }; in do_test()
44 bool mktime_failed = tm.tm_wday == tm0.tm_wday; in do_test()
Dtst-gmtime.c36 TEST_COMPARE (tmg->tm_wday, 4); in do_test()
52 TEST_COMPARE (tmg->tm_wday, 4); in do_test()
67 TEST_COMPARE (tmg->tm_wday, 2); in do_test()
83 TEST_COMPARE (tmg->tm_wday, 2); in do_test()
100 TEST_COMPARE (tmg->tm_wday, 2); in do_test()
116 TEST_COMPARE (tmg->tm_wday, 2); in do_test()
Dtst-strptime.c123 buf, tm.tm_wday, tm.tm_yday); in test_tm()
130 if (tm.tm_wday != tm_tests[i].wday) in test_tm()
133 tm_tests[i].input, tm.tm_wday, tm_tests[i].wday); in test_tm()
184 tm.tm_wday, tm.tm_yday, tm.tm_mon, tm.tm_mday); in do_test()
186 if (tm.tm_wday != day_tests[i].wday) in do_test()
189 day_tests[i].input, tm.tm_wday, day_tests[i].wday); in do_test()
Dstrftime_l.c485 ((const CHAR_T *) (tp->tm_wday < 0 || tp->tm_wday > 6 \ in libc_hidden_def()
486 ? "?" : _NL_CURRENT (LC_TIME, NLW(ABDAY_1) + tp->tm_wday))) in libc_hidden_def()
488 ((const CHAR_T *) (tp->tm_wday < 0 || tp->tm_wday > 6 \ in libc_hidden_def()
489 ? "?" : _NL_CURRENT (LC_TIME, NLW(DAY_1) + tp->tm_wday))) in libc_hidden_def()
512 # define f_wkday (tp->tm_wday < 0 || tp->tm_wday > 6 \ in libc_hidden_def()
513 ? "?" : weekday_name[tp->tm_wday]) in libc_hidden_def()
1203 DO_NUMBER (1, (tp->tm_wday - 1 + 7) % 7 + 1); in libc_hidden_def()
1209 DO_NUMBER (2, (tp->tm_yday - tp->tm_wday + 7) / 7); in libc_hidden_def()
1218 int days = iso_week_days (tp->tm_yday, tp->tm_wday); in libc_hidden_def()
1225 tp->tm_wday); in libc_hidden_def()
[all …]
Dtst-timegm.c35 .tm_wday = 4, in do_test_func()
52 .tm_wday = 2, in do_test_func()
72 .tm_wday = 2, in do_test_func()
Dtst-mktime3.c16 .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 }
45 CHECK (tm_wday) in do_test()
Dtst-strftime3.c436 if (0 <= tm->tm_wday && tm->tm_wday <= 6) in tm_to_printed()
437 wn = weekday_name[tm->tm_wday]; in tm_to_printed()
441 sprintf (temp, "%d", tm->tm_wday); in tm_to_printed()
485 tm.tm_wday = d->w; in do_test()
Dasctime.c57 (tp->tm_wday < 0 || tp->tm_wday >= 7 in asctime_internal()
58 ? "???" : ab_day_name (tp->tm_wday)), in asctime_internal()
Dofftime.c52 tp->tm_wday = (4 + days) % 7; in __offtime()
53 if (tp->tm_wday < 0) in __offtime()
54 tp->tm_wday += 7; in __offtime()
Dtst-strptime3.c31 || tm.tm_wday != 1 || tm.tm_yday != 42) in do_test()
45 || tm.tm_wday != 4 || tm.tm_yday != 38) in do_test()
Dstrptime_l.c224 tm->tm_wday = ((wday % 7) + 7) % 7; in day_of_the_week()
391 tm->tm_wday = cnt_longest; in __strptime_internal()
714 tm->tm_wday = val % 7; in __strptime_internal()
748 tm->tm_wday = val; in __strptime_internal()
1124 tm->tm_wday = val; in __strptime_internal()
1212 int save_wday = tm->tm_wday; in __strptime_internal()
1226 tm->tm_yday = ((7 - (tm->tm_wday - w_offset)) % 7 in __strptime_internal()
1244 tm->tm_wday = save_wday; in __strptime_internal()
Dtst-mktime2.c133 TEST_COMPARE (lt->tm_wday, tm.tm_wday); in bigtime_test()
Dtst-mktime4.c31 .tm_wday = 4,
Dbug-getdate1.c64 printf ("Day of week: %d\n", res->tm_wday); in process_getdate_on()
/glibc-2.36/timezone/
Dtst-timezone.c133 tmBuf.tm_wday, tmBuf.tm_yday, tmBuf.tm_isdst); in do_test()
156 tmBuf.tm_wday, tmBuf.tm_yday, tmBuf.tm_isdst); in do_test()
Dzdump.c1093 if (timeptr->tm_wday < 0 || timeptr->tm_wday >= in dumptime()
1096 else wn = wday_name[timeptr->tm_wday]; in dumptime()
/glibc-2.36/time/bits/types/
Dstruct_tm.h15 int tm_wday; /* Day of week. [0-6] */ member
/glibc-2.36/conform/data/
Dtime.h-data28 element {struct tm} int tm_wday
/glibc-2.36/manual/
Dtime.texi1002 @item int tm_wday
1223 @code{tm_wday}, @code{tm_yday}, @code{tm_gmtoff}, and @code{tm_zone}
2250 directly initialized. Exceptions are the @code{tm_wday} and
2376 date. If the current weekday is greater than or equal to the @code{tm_wday}
/glibc-2.36/ChangeLog.old/
DChangeLog.21755 Protect against tm_wday and tm_mon being out of bounds; use "???"
DChangeLog.91537 * time/strptime.c (strptime_internal): Set tm_wday and tm_yday in