Home
last modified time | relevance | path

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

12345

/third_party/musl/src/time/
Dstrftime.c21 int val = (tm->tm_yday + 7U - (tm->tm_wday+6U)%7) / 7; in week_num()
24 if ((tm->tm_wday + 371U - tm->tm_yday - 2) % 7 <= 2) in week_num()
31 int dec31 = (tm->tm_wday + 7U - tm->tm_yday - 1) % 7; in week_num()
38 int jan1 = (tm->tm_wday + 371U - tm->tm_yday) % 7; in week_num()
54 if (tm->tm_wday > 6U) goto string; in __strftime_fmt_1()
55 item = ABDAY_1 + tm->tm_wday; in __strftime_fmt_1()
58 if (tm->tm_wday > 6U) goto string; in __strftime_fmt_1()
59 item = DAY_1 + tm->tm_wday; in __strftime_fmt_1()
139 val = tm->tm_wday ? tm->tm_wday : 7; in __strftime_fmt_1()
143 val = (tm->tm_yday + 7U - tm->tm_wday) / 7; in __strftime_fmt_1()
[all …]
/third_party/musl/porting/liteos_a/kernel/src/time/
Dstrftime.c21 int val = (tm->tm_yday + 7U - (tm->tm_wday+6U)%7) / 7; in week_num()
24 if ((tm->tm_wday + 371U - tm->tm_yday - 2) % 7 <= 2) in week_num()
31 int dec31 = (tm->tm_wday + 7U - tm->tm_yday - 1) % 7; in week_num()
38 int jan1 = (tm->tm_wday + 371U - tm->tm_yday) % 7; in week_num()
54 if (tm->tm_wday > 6U) goto string; in __strftime_fmt_1()
55 item = ABDAY_1 + tm->tm_wday; in __strftime_fmt_1()
58 if (tm->tm_wday > 6U) goto string; in __strftime_fmt_1()
59 item = DAY_1 + tm->tm_wday; in __strftime_fmt_1()
139 val = tm->tm_wday ? tm->tm_wday : 7; in __strftime_fmt_1()
143 val = (tm->tm_yday + 7U - tm->tm_wday) / 7; in __strftime_fmt_1()
[all …]
/third_party/musl/porting/uniproton/kernel/src/time/
Dstrftime.c21 int val = (tm->tm_yday + 7U - (tm->tm_wday+6U)%7) / 7; in week_num()
24 if ((tm->tm_wday + 371U - tm->tm_yday - 2) % 7 <= 2) in week_num()
31 int dec31 = (tm->tm_wday + 7U - tm->tm_yday - 1) % 7; in week_num()
38 int jan1 = (tm->tm_wday + 371U - tm->tm_yday) % 7; in week_num()
54 if (tm->tm_wday > 6U) goto string; in __strftime_fmt_1()
55 item = ABDAY_1 + tm->tm_wday; in __strftime_fmt_1()
58 if (tm->tm_wday > 6U) goto string; in __strftime_fmt_1()
59 item = DAY_1 + tm->tm_wday; in __strftime_fmt_1()
139 val = tm->tm_wday ? tm->tm_wday : 7; in __strftime_fmt_1()
143 val = (tm->tm_yday + 7U - tm->tm_wday) / 7; in __strftime_fmt_1()
[all …]
/third_party/musl/porting/liteos_m/kernel/src/time/
Dstrftime.c21 int val = (tm->tm_yday + 7U - (tm->tm_wday+6U)%7) / 7; in week_num()
24 if ((tm->tm_wday + 371U - tm->tm_yday - 2) % 7 <= 2) in week_num()
31 int dec31 = (tm->tm_wday + 7U - tm->tm_yday - 1) % 7; in week_num()
38 int jan1 = (tm->tm_wday + 371U - tm->tm_yday) % 7; in week_num()
54 if (tm->tm_wday > 6U) goto string; in __strftime_fmt_1()
55 item = ABDAY_1 + tm->tm_wday; in __strftime_fmt_1()
58 if (tm->tm_wday > 6U) goto string; in __strftime_fmt_1()
59 item = DAY_1 + tm->tm_wday; in __strftime_fmt_1()
139 val = tm->tm_wday ? tm->tm_wday : 7; in __strftime_fmt_1()
143 val = (tm->tm_yday + 7U - tm->tm_wday) / 7; in __strftime_fmt_1()
[all …]
/third_party/musl/porting/linux/user/src/time/
Dstrftime.c49 int val = (tm->tm_yday + 7U - (tm->tm_wday+6U)%7) / 7; in week_num()
52 if ((tm->tm_wday + 371U - tm->tm_yday - 2) % 7 <= 2) in week_num()
59 int dec31 = (tm->tm_wday + 7U - tm->tm_yday - 1) % 7; in week_num()
66 int jan1 = (tm->tm_wday + 371U - tm->tm_yday) % 7; in week_num()
82 if (tm->tm_wday > 6U) goto string; in __strftime_fmt_1()
83 item = ABDAY_1 + tm->tm_wday; in __strftime_fmt_1()
86 if (tm->tm_wday > 6U) goto string; in __strftime_fmt_1()
87 item = DAY_1 + tm->tm_wday; in __strftime_fmt_1()
196 val = tm->tm_wday ? tm->tm_wday : 7; in __strftime_fmt_1()
200 val = (tm->tm_yday + 7U - tm->tm_wday) / 7; in __strftime_fmt_1()
[all …]
/third_party/tzdata/
Dstrftime.c175 pt = _add((t->tm_wday < 0 || in _fmt()
176 t->tm_wday >= DAYSPERWEEK) ? in _fmt()
177 "?" : Locale->weekday[t->tm_wday], in _fmt()
181 pt = _add((t->tm_wday < 0 || in _fmt()
182 t->tm_wday >= DAYSPERWEEK) ? in _fmt()
183 "?" : Locale->wday[t->tm_wday], in _fmt()
354 t->tm_wday) / DAYSPERWEEK, in _fmt()
364 pt = _conv((t->tm_wday == 0) ? in _fmt()
365 DAYSPERWEEK : t->tm_wday, in _fmt()
399 wday = t->tm_wday; in _fmt()
[all …]
Dasctime.c88 if (timeptr->tm_wday < 0 || timeptr->tm_wday >= DAYSPERWEEK) in asctime_r()
90 else wn = wday_name[timeptr->tm_wday]; in asctime_r()
/third_party/musl/libc-test/src/functional/
Dstrftime.c27 .tm_wday = 0,
39 .tm_wday = 1,
51 .tm_wday = 3,
63 .tm_wday = 1,
75 .tm_wday = 3,
Dtime.c21 tm1.tm_wday != tm2.tm_wday || in tm_cmp()
35 tm.tm_wday, tm.tm_yday, tm.tm_isdst); in tm_str()
42 .tm_wday = wd, .tm_yday = yd, .tm_isdst = dst }
/third_party/skia/third_party/externals/icu/source/tools/tzcode/
Dasctime.c90 if (timeptr->tm_wday < 0 || timeptr->tm_wday >= DAYSPERWEEK) in asctime_r()
92 else wn = wday_name[timeptr->tm_wday]; in asctime_r()
/third_party/icu/icu4c/source/tools/tzcode/
Dasctime.c90 if (timeptr->tm_wday < 0 || timeptr->tm_wday >= DAYSPERWEEK) in asctime_r()
92 else wn = wday_name[timeptr->tm_wday]; in asctime_r()
/third_party/flutter/skia/third_party/externals/icu/source/tools/tzcode/
Dasctime.c90 if (timeptr->tm_wday < 0 || timeptr->tm_wday >= DAYSPERWEEK) in asctime_r()
92 else wn = wday_name[timeptr->tm_wday]; in asctime_r()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/gmtime/
D1-1.c79 if ((tm_ptr->tm_wday >= 0) && (tm_ptr->tm_wday <= 6)) { in main()
80 printf("wday %02d\n", tm_ptr->tm_wday); in main()
/third_party/boost/libs/locale/src/util/
Dgregorian.cpp210 … tm_updated_.tm_mday += (value - 1) - (tm_updated_.tm_wday - first_day_of_week_ + 7) % 7; in set_value()
234 val.tm_wday = -1; // indecator of error in normalize()
243 if(val.tm_wday == -1) in normalize()
391 return tm_.tm_wday + 1; in get_value()
405 return (tm_.tm_wday - first_day_of_week_ + 7) % 7 + 1; in get_value()
495 … int dow_of_end_of_year = (end_of_year_days - tm_.tm_yday + tm_.tm_wday) % 7; in get_value()
500 int val = get_week_number(tm_.tm_yday,tm_.tm_wday); in get_value()
519 … int dow_of_end_of_month = (end_of_month_days - tm_.tm_mday + tm_.tm_wday) % 7; in get_value()
524 int val = get_week_number(tm_.tm_mday,tm_.tm_wday); in get_value()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/asctime/
D1-1.c42 time_ptr.tm_wday = WEEKDAY; in main()
53 wday_name[time_ptr.tm_wday], in main()
/third_party/abseil-cpp/absl/time/internal/cctz/src/
Dtime_zone_format.cc92 weekday FromTmWday(int tm_wday) { in FromTmWday() argument
93 switch (tm_wday) { in FromTmWday()
129 tm.tm_wday = ToTmWday(get_weekday(al.cs)); in ToTM()
411 bp = Format64(ep, 0, tm.tm_wday ? tm.tm_wday : 7); in format()
419 bp = Format64(ep, 0, tm.tm_wday); in format()
662 cd = next_weekday(cd - 1, FromTmWday(tm->tm_wday)) + (week_num * 7); in FromWeek()
714 tm.tm_wday = 4; // Thu in parse()
781 data = ParseInt(data, 0, 1, 7, &tm.tm_wday); in parse()
782 if (data != nullptr) tm.tm_wday %= 7; in parse()
785 data = ParseInt(data, 0, 0, 6, &tm.tm_wday); in parse()
/third_party/skia/third_party/externals/abseil-cpp/absl/time/internal/cctz/src/
Dtime_zone_format.cc92 weekday FromTmWday(int tm_wday) { in FromTmWday() argument
93 switch (tm_wday) { in FromTmWday()
129 tm.tm_wday = ToTmWday(get_weekday(al.cs)); in ToTM()
411 bp = Format64(ep, 0, tm.tm_wday ? tm.tm_wday : 7); in format()
419 bp = Format64(ep, 0, tm.tm_wday); in format()
662 cd = next_weekday(cd - 1, FromTmWday(tm->tm_wday)) + (week_num * 7); in FromWeek()
714 tm.tm_wday = 4; // Thu in parse()
781 data = ParseInt(data, 0, 1, 7, &tm.tm_wday); in parse()
782 if (data != nullptr) tm.tm_wday %= 7; in parse()
785 data = ParseInt(data, 0, 0, 6, &tm.tm_wday); in parse()
/third_party/skia/third_party/externals/abseil-cpp/absl/time/
Dtime.cc472 tm.tm_wday = 0; in ToTM()
475 tm.tm_wday = 1; in ToTM()
478 tm.tm_wday = 2; in ToTM()
481 tm.tm_wday = 3; in ToTM()
484 tm.tm_wday = 4; in ToTM()
487 tm.tm_wday = 5; in ToTM()
490 tm.tm_wday = 6; in ToTM()
/third_party/abseil-cpp/absl/time/
Dtime.cc471 tm.tm_wday = 0; in ToTM()
474 tm.tm_wday = 1; in ToTM()
477 tm.tm_wday = 2; in ToTM()
480 tm.tm_wday = 3; in ToTM()
483 tm.tm_wday = 4; in ToTM()
486 tm.tm_wday = 5; in ToTM()
489 tm.tm_wday = 6; in ToTM()
/third_party/musl/libc-test/src/functionalext/time/
Dlocaltime.c49 localtm->tm_min, localtm->tm_sec, localtm->tm_wday, localtm->tm_yday, localtm->tm_isdst, in localtime_0100()
78 localtm->tm_min, localtm->tm_sec, localtm->tm_wday, localtm->tm_yday, localtm->tm_isdst, in localtime64_0100()
Dlocaltime_r.c50 localtm->tm_min, localtm->tm_sec, localtm->tm_wday, localtm->tm_yday, localtm->tm_isdst, in localtime_r_0100()
80 localtm->tm_min, localtm->tm_sec, localtm->tm_wday, localtm->tm_yday, localtm->tm_isdst, in localtime64_r_0100()
/third_party/musl/libc-test/src/functionalext/supplement/time/
Dgmtime_r_sup.c504 gmtm->tm_wday, in gmtime_r_0100()
547 gmtm->tm_wday, in gmtime64_r_0100()
Dgmtime_sup.c504 gmtm->tm_wday, in gmtime_0100()
547 gmtm->tm_wday, in gmtime64_0100()
/third_party/toybox/toys/posix/
Dcal.c41 start = (36+tm->tm_wday-tm->tm_mday)%7; in calstrings()
42 else start = tm->tm_wday; in calstrings()
/third_party/libwebsockets/lib/roles/http/
Ddate.c40 const char *w = s + 36 + (3 * tm->tm_wday), *m = s + (3 * tm->tm_mon); in lws_http_date_render()
96 tm->tm_wday++; in lws_http_date_parse()

12345