Home
last modified time | relevance | path

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

/bionic/libc/tzcode/
Dstrftime.c231 pt = _add((t->tm_wday < 0 || in _fmt()
232 t->tm_wday >= DAYSPERWEEK) ? in _fmt()
233 "?" : Locale->weekday[t->tm_wday], in _fmt()
237 pt = _add((t->tm_wday < 0 || in _fmt()
238 t->tm_wday >= DAYSPERWEEK) ? in _fmt()
239 "?" : Locale->wday[t->tm_wday], in _fmt()
415 pt = _conv((t->tm_yday + DAYSPERWEEK - t->tm_wday) / DAYSPERWEEK, in _fmt()
425 pt = _conv((t->tm_wday == 0) ? DAYSPERWEEK : t->tm_wday, " ", pt, ptlim); in _fmt()
458 wday = t->tm_wday; in _fmt()
526 (t->tm_yday + DAYSPERWEEK - (t->tm_wday ? (t->tm_wday - 1) : (DAYSPERWEEK - 1))) / in _fmt()
[all …]
Dasctime.c82 if (timeptr->tm_wday < 0 || timeptr->tm_wday >= DAYSPERWEEK) in asctime_r()
84 else wn = wday_name[timeptr->tm_wday]; in asctime_r()
Dstrptime.c236 tm->tm_wday = i; in _strptime()
379 if (!(_conv_num(&bp, &tm->tm_wday, 0, 6))) in _strptime()
388 tm->tm_wday = i % 7; in _strptime()
578 tm->tm_wday = EPOCH_WDAY + in _strptime()
584 tm->tm_wday %= DAYSPERWEEK; in _strptime()
585 if (tm->tm_wday < 0) in _strptime()
586 tm->tm_wday += DAYSPERWEEK; in _strptime()
Dlocaltime.c1868 tmp->tm_wday = (TM_WDAY_BASE in timesub()
1874 tmp->tm_wday %= DAYSPERWEEK; in timesub()
1875 if (tmp->tm_wday < 0) in timesub()
1876 tmp->tm_wday += DAYSPERWEEK; in timesub()
2393 tmcpy.tm_wday = -1; in timegm()
2395 if (0 <= tmcpy.tm_wday) in timegm()
/bionic/libc/bionic/
Dtime64.c263 assert(tm->tm_wday >= 0); in check_tm()
264 assert(tm->tm_wday <= 6); in check_tm()
374 dest->tm_wday = src->tm_wday; in copy_tm_to_TM()
406 dest->tm_wday = src->tm_wday; in copy_TM_to_tm()
640 p->tm_wday = v_tm_wday; in gmtime64_r()
739 if( 0 <= date->tm_wday && date->tm_wday <= 6 ) in valid_tm_wday()
774 wday_name[date->tm_wday], in asctime64_r()
/bionic/libc/kernel/uapi/linux/
Drtc.h19 int tm_wday; member
/bionic/tests/headers/posix/
Dtime_h.c54 STRUCT_MEMBER(struct tm, int, tm_wday); in time_h()
/bionic/libc/include/
Dtime.h88 int tm_wday; member
/bionic/tests/
Dtime_test.cpp502 EXPECT_EQ(2, tm.tm_wday); in TEST()
1268 EXPECT_EQ(5, tm.tm_wday); in TEST()
1283 EXPECT_EQ(5, tm.tm_wday); in TEST()