Lines Matching defs:month
62 uint8_t month;
1173 // We want (year, month, day of month); we have year and month, but we
1174 // need to turn (week, day-of-week) into day-of-month
1178 // the first weekday of the month and the number of days in the month.
1179 int8_t first_day = (ymd_to_ord(year, self->month, 1) + 6) % 7;
1180 uint8_t days_in_month = DAYS_IN_MONTH[self->month];
1181 if (self->month == 2 && is_leap_year(year)) {
1191 // 3. Add 1 because month days are a 1-based index.
1204 // month and if so knock off 1 week.
1209 int64_t ordinal = ymd_to_ord(year, self->month, month_day) - EPOCHORDINAL;
1216 calendarrule_new(uint8_t month, uint8_t week, uint8_t day, int8_t hour,
1222 // The d'th day (0 <= d <= 6) of week n of month m of the year (1 <= n <=
1223 // 5, 1 <= m <= 12, where week 5 means "the last d day in month m" which
1226 if (month <= 0 || month > 12) {
1247 .month = month,
1749 // 3. Mm.n.d: Specifying by month, week and day-of-week.
1752 uint8_t month, week, day;
1754 if (parse_uint(ptr, &month)) {
1764 month *= 10;
1765 month += tmp;
1797 if (calendarrule_new(month, week, day, hour, minute, second, rv)) {
2178 /* Calculates ordinal datetime from year, month and day. */