Home
last modified time | relevance | path

Searched refs:weekday (Results 1 - 25 of 40) sorted by relevance

12

/third_party/skia/third_party/externals/abseil-cpp/absl/time/internal/cctz/include/cctz/
H A Dcivil_time_detail.h531 enum class weekday { class
541 CONSTEXPR_F weekday get_weekday(const civil_second& cs) noexcept {
542 CONSTEXPR_D weekday k_weekday_by_mon_off[13] = {
543 weekday::monday, weekday::tuesday, weekday::wednesday,
544 weekday::thursday, weekday::friday, weekday::saturday,
545 weekday
[all...]
H A Dcivil_time.h276 // using operator<<(). The result is the full weekday name in English with a
279 // weekday wd = weekday::thursday;
282 using detail::weekday;
284 // Returns the weekday for the given civil-time value.
287 // weekday wd = get_weekday(a); // wd == weekday::thursday
292 // civil_day, and that falls on the given weekday.
305 // civil_day a(2015, 8, 13); // get_weekday(a) == weekday::thursday
306 // civil_day b = next_weekday(a, weekday
[all...]
/third_party/python/Lib/
H A D_strptime.py34 f_weekday -- full weekday names (7-item list)
35 a_weekday -- abbreviated weekday names (7-item list)
276 first_weekday = datetime_date(year, 1, 1).weekday()
294 """Calculate the Julian day based on the ISO 8601 year, week, and weekday.
365 # weekday and julian defaulted to None so as to signal need to calculate
367 weekday = julian = None
424 weekday = locale_time.f_weekday.index(found_dict['A'].lower())
426 weekday = locale_time.a_weekday.index(found_dict['a'].lower())
428 weekday = int(found_dict['w'])
429 if weekday
[all...]
H A Dcalendar.py14 "firstweekday", "isleap", "leapdays", "weekday", "monthrange",
34 def __init__(self, weekday):
35 self.weekday = weekday
37 return "bad weekday number %r; must be 0 (Monday) to 6 (Sunday)" % self.weekday
115 def weekday(year, month, day): function
116 """Return weekday (0-6 ~ Mon-Sun) for year, month (1-12), day (1-31)."""
119 return datetime.date(year, month, day).weekday()
123 """Return weekday (
[all...]
H A Ddatetime.py479 raise ValueError(f"Invalid weekday: {day} (range is [1, 7])")
913 weekday()
960 y, m, d, hh, mm, ss, weekday, jday, dst = _time.localtime(t)
995 """Construct a date from the ISO year, week number and weekday.
1026 weekday = self.toordinal() % 7 or 7
1028 _DAYNAMES[weekday],
1164 def weekday(self): member in date
1176 """Return a named tuple containing ISO year, week number, and weekday.
1286 def __new__(cls, year, week, weekday, /):
1287 return super().__new__(cls, (year, week, weekday))
1298 def weekday(self): global() member in IsoCalendarDate
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/time/internal/cctz/src/
H A Dcivil_time_detail.cc70 std::ostream& operator<<(std::ostream& os, weekday wd) { in operator <<()
72 case weekday::monday: in operator <<()
74 case weekday::tuesday: in operator <<()
76 case weekday::wednesday: in operator <<()
78 case weekday::thursday: in operator <<()
80 case weekday::friday: in operator <<()
82 case weekday::saturday: in operator <<()
84 case weekday::sunday: in operator <<()
H A Dcctz_benchmark.cc64 const cctz::weekday kWeekdays[7] = { in BM_NextWeekday()
65 cctz::weekday::monday, cctz::weekday::tuesday, cctz::weekday::wednesday, in BM_NextWeekday()
66 cctz::weekday::thursday, cctz::weekday::friday, cctz::weekday::saturday, in BM_NextWeekday()
67 cctz::weekday::sunday, in BM_NextWeekday()
85 const cctz::weekday kWeekdays[7] = { in BM_PrevWeekday()
86 cctz::weekday in BM_PrevWeekday()
[all...]
H A Dtime_zone_format.cc70 // Convert a cctz::weekday to a tm_wday value (0-6, Sunday = 0).
71 int ToTmWday(weekday wd) { in ToTmWday()
73 case weekday::sunday: in ToTmWday()
75 case weekday::monday: in ToTmWday()
77 case weekday::tuesday: in ToTmWday()
79 case weekday::wednesday: in ToTmWday()
81 case weekday::thursday: in ToTmWday()
83 case weekday::friday: in ToTmWday()
85 case weekday::saturday: in ToTmWday()
91 // Convert a tm_wday value (0-6, Sunday = 0) to a cctz::weekday
[all...]
H A Dcivil_time_test.cc309 constexpr weekday wd = get_weekday(cd);
310 static_assert(wd == weekday::thursday, "Weekday");
315 constexpr civil_day next = next_weekday(cd, weekday::thursday);
323 constexpr civil_day prev = prev_weekday(cd, weekday::thursday);
836 EXPECT_EQ(weekday::tuesday, get_weekday(ss));
846 EXPECT_EQ(weekday::tuesday, get_weekday(mm));
856 EXPECT_EQ(weekday::tuesday, get_weekday(hh));
866 EXPECT_EQ(weekday::tuesday, get_weekday(d));
876 EXPECT_EQ(weekday::sunday, get_weekday(m));
886 EXPECT_EQ(weekday
[all...]
H A Dtime_zone_posix.cc103 int weekday = 0; in ParseDateTime() local
104 if ((p = ParseInt(p + 1, 0, 6, &weekday)) != nullptr) { in ParseDateTime()
108 res->date.m.weekday = static_cast<std::int_fast8_t>(weekday); in ParseDateTime()
H A Dtime_zone_info.cc86 // Convert a cctz::weekday to a POSIX TZ weekday number (0==Sun, ..., 6=Sat).
87 inline int ToPosixWeekday(weekday wd) { in ToPosixWeekday()
89 case weekday::sunday: in ToPosixWeekday()
91 case weekday::monday: in ToPosixWeekday()
93 case weekday::tuesday: in ToPosixWeekday()
95 case weekday::wednesday: in ToPosixWeekday()
97 case weekday::thursday: in ToPosixWeekday()
99 case weekday::friday: in ToPosixWeekday()
101 case weekday in ToPosixWeekday()
153 const std::int_fast64_t weekday = (jan1_weekday + days) % 7; TransOffset() local
[all...]
H A Dtime_zone_lookup_test.cc853 EXPECT_EQ(weekday::thursday, get_weekday(convert(tp, tz))); in TEST()
861 EXPECT_EQ(weekday::wednesday, get_weekday(convert(tp, tz))); in TEST()
869 EXPECT_EQ(weekday::wednesday, get_weekday(convert(tp, tz))); in TEST()
879 EXPECT_EQ(weekday::wednesday, get_weekday(convert(tp, tz))); in TEST()
886 EXPECT_EQ(weekday::wednesday, get_weekday(convert(tp, tz))); in TEST()
893 EXPECT_EQ(weekday::thursday, get_weekday(convert(tp, tz))); in TEST()
900 EXPECT_EQ(weekday::thursday, get_weekday(convert(tp, tz))); in TEST()
1419 EXPECT_EQ(weekday::saturday, get_weekday(convert(tp, tz))); in TEST()
1422 EXPECT_EQ(weekday::friday, get_weekday(convert(tp, tz))); in TEST()
H A Dtime_zone_posix.h31 // weekday = 0
43 // weekday = 0
68 // (M) the Nth weekday of a month (e.g., the 2nd Sunday in March).
85 std::int_fast8_t weekday; // 0==Sun, ..., 6=Sat member
/third_party/python/Modules/clinic/
H A D_datetimemodule.c.h19 int weekday);
25 static const char * const _keywords[] = {"year", "week", "weekday", NULL}; in iso_calendar_date_new()
32 int weekday; in iso_calendar_date_new() local
46 weekday = _PyLong_AsInt(fastargs[2]); in iso_calendar_date_new()
47 if (weekday == -1 && PyErr_Occurred()) { in iso_calendar_date_new()
50 return_value = iso_calendar_date_new_impl(type, year, week, weekday); in iso_calendar_date_new()
/third_party/skia/third_party/externals/abseil-cpp/absl/time/
H A Dtime.cc78 bd.weekday = 4; in InfiniteFutureBreakdown()
95 bd.weekday = 7; in InfinitePastBreakdown()
166 inline int MapWeekday(const cctz::weekday& wd) { in MapWeekday()
168 case cctz::weekday::monday: in MapWeekday()
170 case cctz::weekday::tuesday: in MapWeekday()
172 case cctz::weekday::wednesday: in MapWeekday()
174 case cctz::weekday::thursday: in MapWeekday()
176 case cctz::weekday::friday: in MapWeekday()
178 case cctz::weekday::saturday: in MapWeekday()
180 case cctz::weekday in MapWeekday()
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
H A DSimpleDateRule.java47 * Construct a rule for a weekday within a month, e.g. the first Monday.
189 int weekday = c.get(Calendar.DAY_OF_WEEK); in computeInYear()
191 //System.out.println(" weekday = " + weekday); in computeInYear()
198 delta = (dayOfWeek - weekday + 7) % 7; in computeInYear()
203 delta = -((dayOfWeek + weekday + 7) % 7); in computeInYear()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
H A DSimpleDateRule.java49 * Construct a rule for a weekday within a month, e.g. the first Monday.
187 int weekday = c.get(Calendar.DAY_OF_WEEK); in computeInYear()
189 //System.out.println(" weekday = " + weekday); in computeInYear()
196 delta = (dayOfWeek - weekday + 7) % 7; in computeInYear()
201 delta = -((dayOfWeek + weekday + 7) % 7); in computeInYear()
/third_party/node/deps/v8/src/date/
H A Ddate.cc201 int* weekday, int* hour, int* min, int* sec, in BreakDownTime()
206 *weekday = Weekday(days); in BreakDownTime()
565 int year, month, day, weekday, hour, min, sec, ms; in ToDateString() local
566 date_cache->BreakDownTime(local_time_ms, &year, &month, &day, &weekday, &hour, in ToDateString()
575 kShortWeekDays[weekday], kShortMonths[month], day, in ToDateString()
585 kShortWeekDays[weekday], kShortMonths[month], day, year, hour, min, in ToDateString()
591 kShortWeekDays[weekday], day, kShortMonths[month], year, in ToDateString()
200 BreakDownTime(int64_t time_ms, int* year, int* month, int* day, int* weekday, int* hour, int* min, int* sec, int* ms) BreakDownTime() argument
/third_party/typescript/tests/baselines/reference/
H A DdeclFileTypeofInAnonymousType.js6 weekday,
35 e[e["weekday"] = 0] = "weekday";
59 weekday = 0,
H A DconstructorWithIncompleteTypeAnnotation.js85 var weekday = Weekdays.Monday;
87 var con = char + f + hexchar + float.toString() + float2.toString() + reg.toString() + objLit + weekday;
378 var weekday = Weekdays.Monday;
379 var con = char + f + hexchar + float.toString() + float2.toString() + reg.toString() + objLit + weekday;
/third_party/python/Doc/includes/
H A Dtzinfo_examples.py51 dt.weekday(), 0, 0)
62 days_to_go = 6 - dt.weekday()
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/
H A Dgenspec.py28 friday = today + timedelta((4 - today.weekday()) % 7)
/third_party/python/Misc/
H A Dcoverity_model.c169 weekday(int year, int month, int day) in weekday() function
/third_party/curl/lib/
H A Dparsedate.c116 static const char * const weekday[] = variable
216 what = &weekday[0]; in checkday()
/third_party/python/Lib/turtledemo/
H A Dclock.py86 return wochentag[t.weekday()]

Completed in 17 milliseconds

12