/third_party/node/deps/npm/node_modules/tiny-relative-date/lib/ |
H A D | factory.js | 24 var week = day * 7; 30 if (delta > day && delta < week) { 77 case !(delta < week): 80 case Math.floor(delta / week) !== 1: 84 return translate('weeks', Math.floor(delta / week));
|
/third_party/python/Modules/clinic/ |
H A D | _datetimemodule.c.h | 18 iso_calendar_date_new_impl(PyTypeObject *type, int year, int week, 25 static const char * const _keywords[] = {"year", "week", "weekday", NULL}; in iso_calendar_date_new() 31 int week; in iso_calendar_date_new() local 42 week = _PyLong_AsInt(fastargs[1]); in iso_calendar_date_new() 43 if (week == -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/internal/cctz/src/ |
H A D | time_zone_posix.cc | 101 int week = 0; in ParseDateTime() local 102 if ((p = ParseInt(p + 1, 1, 5, &week)) != nullptr && *p == '.') { in ParseDateTime() 107 res->date.m.week = static_cast<std::int_fast8_t>(week); in ParseDateTime()
|
H A D | time_zone_posix.h | 30 // week = 2 42 // week = 1 71 // it would take us to another day, and perhaps week, or even month. 84 std::int_fast8_t week; // week of month [1:5] (5==last) member
|
H A D | time_zone_info.cc | 151 const bool last_week = (pt.date.m.week == 5); in TransOffset() 158 days += (pt.date.m.week - 1) * 7; in TransOffset()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/ |
H A D | 2-1-buildonly.c | 16 int week, year, dst; in dummyfcn() local 24 week = t.tm_wday; in dummyfcn()
|
/third_party/python/Lib/ |
H A D | datetime.py | 459 def _isoweek_to_gregorian(year, week, day): 464 if not 0 < week < 53: 467 if week == 53: 476 raise ValueError(f"Invalid week: {week}") 482 day_offset = (week - 1) * 7 + (day - 1) 484 # Calculate the ordinal day for monday, week 1 994 def fromisocalendar(cls, year, week, day): 995 """Construct a date from the ISO year, week number and weekday. 998 return cls(*_isoweek_to_gregorian(year, week, da 1294 def week(self): global() member in IsoCalendarDate [all...] |
H A D | calendar.py | 4 default, these calendars have Monday as the first day of the week, and 6 set the first day of the week (0=Monday, 6=Sunday).""" 169 Return an iterator for one week of weekday numbers starting with the 233 Each row represents a week; week entries are datetime.date values. 241 Each row represents a week; week entries are 251 Each row represents a week; days outside this month are zero. 260 Each month contains between 4 and 6 weeks and each week contains 1-7 272 yeardatescalendar()). Entries in the week list 625 week = c.formatweek global() variable [all...] |
/third_party/python/Lib/test/ |
H A D | test_calendar.py | 473 week = [(1,0), (2,1), (3,2), (4,3), (5,4), (6,5), (7,6)] 474 calendar.TextCalendar().prweek(week, 1) 643 week = list(cal.iterweekdays()) 645 self.assertEqual(week, expected) 965 'different_locale', 'c', 'prweek', 'week', 'format',
|
H A D | datetimetester.py | 528 a = td(7) # One week 1256 week = timedelta(7) 1262 self.assertEqual(a + week, self.theclass(2002, 3, 9)) 1263 self.assertEqual(a - week, self.theclass(2002, 2, 23)) 1264 self.assertEqual(a + 52*week, self.theclass(2003, 3, 1)) 1265 self.assertEqual(a - 52*week, self.theclass(2001, 3, 3)) 1266 self.assertEqual((a + week) - a, week) 1268 self.assertEqual((a - week) - a, -week) [all...] |
/third_party/python/Modules/ |
H A D | _zoneinfo.c | 63 uint8_t week; member 1174 // need to turn (week, day-of-week) into day-of-month in calendarrule_year_to_timestamp() 1176 // Week 1 is the first week in which day `day` (where 0 = Sunday) appears. in calendarrule_year_to_timestamp() 1198 // Now use a 0-based index version of `week` to calculate the w-th in calendarrule_year_to_timestamp() 1200 month_day += ((int8_t)(self->week) - 1) * 7; in calendarrule_year_to_timestamp() 1204 // month and if so knock off 1 week. in calendarrule_year_to_timestamp() 1216 calendarrule_new(uint8_t month, uint8_t week, uint8_t day, int8_t hour, in calendarrule_new() argument 1222 // The d'th day (0 <= d <= 6) of week n of month m of the year (1 <= n <= in calendarrule_new() 1223 // 5, 1 <= m <= 12, where week in calendarrule_new() 1752 uint8_t month, week, day; parse_transition_rule() local [all...] |
H A D | _datetimemodule.c | 374 /* Day of week, where Monday==0, ..., Sunday==6. 1/1/1 was a Monday. */ 381 /* Ordinal of the Monday starting week 1 of the ISO year. Week 1 is the 382 * first calendar week containing a Thursday. 745 * -3: Failed to parse ISO week. in parse_isoformat_date() 2521 PyObject *week = NULL; in delta_new() local 2535 &ms, &minute, &hour, &week) == 0) in delta_new() 2572 if (week) { in delta_new() 2573 y = accum("weeks", x, week, us_per_week, &leftover_us); in delta_new() 3101 "year", "week", "day", NULL in date_fromisocalendar() 3104 int year, week, da in date_fromisocalendar() local 3318 PyObject* week = PyTuple_GetItem((PyObject *)self, 1); iso_calendar_date_repr() local 3359 PyObject *week = PyTuple_GetItem((PyObject *)self, 1); iso_calendar_date_week() local 3413 iso_calendar_date_new_impl(PyTypeObject *type, int year, int week, int weekday) iso_calendar_date_new_impl() argument 3437 int week; date_isocalendar() local [all...] |
/third_party/icu/icu4c/source/tools/tzcode/ |
H A D | zic.c | 2043 register int week; in stringrule() local 2053 week = 1 + (rp->r_dayofmonth - 1) / DAYSPERWEEK; in stringrule() 2056 week = 5; in stringrule() 2063 week = rp->r_dayofmonth / DAYSPERWEEK; in stringrule() 2069 rp->r_month + 1, week, wday); in stringrule()
|
/third_party/skia/third_party/externals/icu/source/tools/tzcode/ |
H A D | zic.c | 2042 register int week; in stringrule() local 2052 week = 1 + (rp->r_dayofmonth - 1) / DAYSPERWEEK; in stringrule() 2055 week = 5; in stringrule() 2062 week = rp->r_dayofmonth / DAYSPERWEEK; in stringrule() 2068 rp->r_month + 1, week, wday); in stringrule()
|
/third_party/tzdata/ |
H A D | zic.c | 2922 register int week; in stringrule() local 2932 week = 1 + (rp->r_dayofmonth - 1) / DAYSPERWEEK; in stringrule() 2935 week = 5; in stringrule() 2942 week = rp->r_dayofmonth / DAYSPERWEEK; in stringrule() 2948 rp->r_month + 1, week, wday); in stringrule()
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
H A D | DateTimeGeneratorTest.java | 1465 new AllFieldsTestItem( 'Y', new int[]{1,2,3,4}, "Y" ), // year for week of year in TestAllFieldPatterns() 1474 // week in TestAllFieldPatterns() 1475 new AllFieldsTestItem( 'w', new int[]{1,2}, "w" ), // week of year in TestAllFieldPatterns() 1476 new AllFieldsTestItem( 'W', new int[]{1}, "W" ), // week of month in TestAllFieldPatterns() 1480 new AllFieldsTestItem( 'F', new int[]{1}, "F" ), // day of week in month in TestAllFieldPatterns() 1483 new AllFieldsTestItem( 'E', new int[]{1,2,3,4,5,6}, "Eec" ), // day of week in TestAllFieldPatterns() 1484 new AllFieldsTestItem( 'e', new int[]{1,2,3,4,5,6}, "Eec" ), // local day of week in TestAllFieldPatterns() 1485 new AllFieldsTestItem( 'c', new int[]{1,2,3,4,5,6}, "Eec" ), // standalone local day of week in TestAllFieldPatterns() 1802 // ICU-21650: (See the "week day" section of https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table in testBestPattern()
|