Lines Matching defs:week

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.
2521 PyObject *week = NULL;
2535 &ms, &minute, &hour, &week) == 0)
2572 if (week) {
2573 y = accum("weeks", x, week, us_per_week, &leftover_us);
3101 "year", "week", "day", NULL
3104 int year, week, day;
3107 &year, &week, &day) == 0) {
3123 int rv = iso_to_ymd(year, week, day, &year, &month, &day);
3127 PyErr_Format(PyExc_ValueError, "Invalid week: %d", week);
3304 ((year, week, weekday)\n\
3318 PyObject* week = PyTuple_GetItem((PyObject *)self, 1);
3319 if (week == NULL) {
3327 return PyUnicode_FromFormat("%.200s(year=%S, week=%S, weekday=%S)",
3328 Py_TYPE(self)->tp_name, year, week, weekday);
3359 PyObject *week = PyTuple_GetItem((PyObject *)self, 1);
3360 if (week == NULL) {
3363 Py_INCREF(week);
3364 return week;
3380 {"week", (getter)iso_calendar_date_week},
3408 week: int
3413 iso_calendar_date_new_impl(PyTypeObject *type, int year, int week,
3425 PyTuple_SET_ITEM(self, 1, PyLong_FromLong(week));
3437 int week;
3440 week = divmod(today - week1_monday, 7, &day);
3441 if (week < 0) {
3444 week = divmod(today - week1_monday, 7, &day);
3446 else if (week >= 52 && today >= iso_week1_monday(year + 1)) {
3448 week = 0;
3452 year, week + 1, day + 1);
3572 PyDoc_STR("int, int, int -> Construct a date from the ISO year, week "
3595 PyDoc_STR("Return a named tuple containing ISO year, week number, and "
3602 PyDoc_STR("Return the day of the week represented by the date.\n"
3610 PyDoc_STR("Return the day of the week represented by the date.\n"