Lines Matching refs:month
276 * day of week in the month (e.g., (2, WEDNESDAY) is the second Wednesday
277 * of the month).
279 * the day of week in the month counting backward from the end of the month.
280 * (e.g., (-1, MONDAY) is the last Monday in the month)
282 * specifies the day of the month, regardless of what day of the week it is.
283 * (e.g., (10, 0) is the tenth day of the month)
285 * specifies the day of the month counting backward from the end of the
286 * month, regardless of what day of the week it is (e.g., (-2, 0) is the
287 * next-to-last day of the month).
289 * first specified day of the week on or after the specfied day of the month.
290 * (e.g., (15, -SUNDAY) is the first Sunday after the 15th of the month
293 * last specified day of the week on or before the specified day of the month.
294 * (e.g., (-20, -TUESDAY) is the last Tuesday before the 20th of the month
296 * @param month the daylight savings starting month. Month is 0-based.
299 * day-of-week-in-month. Please see the member description for an example.
307 SimpleTimeZone::setStartRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek,
310 startMonth = (int8_t)month;
322 SimpleTimeZone::setStartRule(int32_t month, int32_t dayOfMonth,
325 setStartRule(month, dayOfMonth, 0, time, mode, status);
331 SimpleTimeZone::setStartRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
334 setStartRule(month, after ? dayOfMonth : -dayOfMonth,
348 * @param month the daylight savings ending month. Month is 0-based.
351 * day-of-week-in-month. See setStartRule() for a complete explanation.
359 SimpleTimeZone::setEndRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek,
362 endMonth = (int8_t)month;
374 SimpleTimeZone::setEndRule(int32_t month, int32_t dayOfMonth,
377 setEndRule(month, dayOfMonth, 0, time, mode, status);
383 SimpleTimeZone::setEndRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
386 setEndRule(month, after ? dayOfMonth : -dayOfMonth,
393 SimpleTimeZone::getOffset(uint8_t era, int32_t year, int32_t month, int32_t day,
396 // Check the month before calling Grego::monthLength(). This
403 if(month < UCAL_JANUARY || month > UCAL_DECEMBER) {
408 return getOffset(era, year, month, day, dayOfWeek, millis, Grego::monthLength(year, month), status);
412 SimpleTimeZone::getOffset(uint8_t era, int32_t year, int32_t month, int32_t day,
416 // Check the month before calling Grego::monthLength(). This
423 if (month < UCAL_JANUARY
424 || month > UCAL_DECEMBER) {
429 // We ignore monthLength because it can be derived from year and month.
432 return getOffset(era, year, month, day, dayOfWeek, millis,
433 Grego::monthLength(year, month),
434 Grego::previousMonthLength(year, month),
439 SimpleTimeZone::getOffset(uint8_t era, int32_t year, int32_t month, int32_t day,
447 || month < UCAL_JANUARY
448 || month > UCAL_DECEMBER
470 // month are different.
475 int32_t startCompare = compareToRule((int8_t)month, (int8_t)monthLength, (int8_t)prevMonthLength,
489 endCompare = compareToRule((int8_t)month, (int8_t)monthLength, (int8_t)prevMonthLength,
516 int32_t year, month, dom, dow;
520 Grego::dayToFields(day, year, month, dom, dow);
522 savingsDST = getOffset(GregorianCalendar::AD, year, month, dom,
524 Grego::monthLength(year, month),
549 Grego::dayToFields(day, year, month, dom, dow);
550 savingsDST = getOffset(GregorianCalendar::AD, year, month, dom,
552 Grego::monthLength(year, month),
569 SimpleTimeZone::compareToRule(int8_t month, int8_t monthLen, int8_t prevMonthLen,
583 /* When incrementing the month, it is desirible to overflow
585 * compare against a real month. Wraparound of the value
587 ++month;
596 --month;
602 if (month < ruleMonth) return -1;
603 else if (month > ruleMonth) return 1;
605 // calculate the actual day of month for the rule
615 // if the mode is day-of-month, the day of month is given
620 // if the mode is day-of-week-in-month, calculate the day-of-month from it
622 // In this case ruleDay is the day-of-week-in-month (this code is using
624 // of the first day of the month, so it's trusting that they're really
631 // the same calculation figuring backward from the last day of the month.
636 // the day of week of the first of the month)
655 // now that we have a real day-in-month for the rule, we can compare days...
775 // 5 the fifth of the month
776 // lastSun the last Sunday in the month
777 // lastMon the last Monday in the month
792 // startDay The day of the month, or for DOW_IN_MONTH mode, a
828 * negative, in order to indicate special modes. The day of month
830 * set, and the day of week and day of month variables will be positive.
849 * month 0..11 same same same don't care
854 * The range for month does not include UNDECIMBER since this class is
855 * really specific to GregorianCalendar, which does not use that month.