Home | History | Annotate | Download | only in i18n

Lines Matching defs:month

278  *       day of week in the month (e.g., (2, WEDNESDAY) is the second Wednesday
279 * of the month).
281 * the day of week in the month counting backward from the end of the month.
282 * (e.g., (-1, MONDAY) is the last Monday in the month)
284 * specifies the day of the month, regardless of what day of the week it is.
285 * (e.g., (10, 0) is the tenth day of the month)
287 * specifies the day of the month counting backward from the end of the
288 * month, regardless of what day of the week it is (e.g., (-2, 0) is the
289 * next-to-last day of the month).
291 * first specified day of the week on or after the specfied day of the month.
292 * (e.g., (15, -SUNDAY) is the first Sunday after the 15th of the month
295 * last specified day of the week on or before the specified day of the month.
296 * (e.g., (-20, -TUESDAY) is the last Tuesday before the 20th of the month
298 * @param month the daylight savings starting month. Month is 0-based.
301 * day-of-week-in-month. Please see the member description for an example.
309 SimpleTimeZone::setStartRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek,
312 startMonth = (int8_t)month;
324 SimpleTimeZone::setStartRule(int32_t month, int32_t dayOfMonth,
327 setStartRule(month, dayOfMonth, 0, time, mode, status);
333 SimpleTimeZone::setStartRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
336 setStartRule(month, after ? dayOfMonth : -dayOfMonth,
350 * @param month the daylight savings ending month. Month is 0-based.
353 * day-of-week-in-month. See setStartRule() for a complete explanation.
361 SimpleTimeZone::setEndRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek,
364 endMonth = (int8_t)month;
376 SimpleTimeZone::setEndRule(int32_t month, int32_t dayOfMonth,
379 setEndRule(month, dayOfMonth, 0, time, mode, status);
385 SimpleTimeZone::setEndRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
388 setEndRule(month, after ? dayOfMonth : -dayOfMonth,
395 SimpleTimeZone::getOffset(uint8_t era, int32_t year, int32_t month, int32_t day,
398 // Check the month before calling Grego::monthLength(). This
405 if(month < UCAL_JANUARY || month > UCAL_DECEMBER) {
410 return getOffset(era, year, month, day, dayOfWeek, millis, Grego::monthLength(year, month), status);
414 SimpleTimeZone::getOffset(uint8_t era, int32_t year, int32_t month, int32_t day,
418 // Check the month before calling Grego::monthLength(). This
425 if (month < UCAL_JANUARY
426 || month > UCAL_DECEMBER) {
431 month.
434 return getOffset(era, year, month, day, dayOfWeek, millis,
435 Grego::monthLength(year, month),
436 Grego::previousMonthLength(year, month),
441 SimpleTimeZone::getOffset(uint8_t era, int32_t year, int32_t month, int32_t day,
449 || month < UCAL_JANUARY
450 || month > UCAL_DECEMBER
472 // month are different.
477 int32_t startCompare = compareToRule((int8_t)month, (int8_t)monthLength, (int8_t)prevMonthLength,
491 endCompare = compareToRule((int8_t)month, (int8_t)monthLength, (int8_t)prevMonthLength,
518 int32_t year, month, dom, dow;
522 Grego::dayToFields(day, year, month, dom, dow);
524 savingsDST = getOffset(GregorianCalendar::AD, year, month, dom,
526 Grego::monthLength(year, month),
551 Grego::dayToFields(day, year, month, dom, dow);
552 savingsDST = getOffset(GregorianCalendar::AD, year, month, dom,
554 Grego::monthLength(year, month),
571 SimpleTimeZone::compareToRule(int8_t month, int8_t monthLen, int8_t prevMonthLen,
585 /* When incrementing the month, it is desirible to overflow
587 * compare against a real month. Wraparound of the value
589 ++month;
598 --month;
604 if (month < ruleMonth) return -1;
605 else if (month > ruleMonth) return 1;
607 // calculate the actual day of month for the rule
617 // if the mode is day-of-month, the day of month is given
622 // if the mode is day-of-week-in-month, calculate the day-of-month from it
624 // In this case ruleDay is the day-of-week-in-month (this code is using
626 // of the first day of the month, so it's trusting that they're really
633 // the same calculation figuring backward from the last day of the month.
638 // the day of week of the first of the month)
657 // now that we have a real day-in-month for the rule, we can compare days...
777 // 5 the fifth of the month
778 // lastSun the last Sunday in the month
779 // lastMon the last Monday in the month
794 // startDay The day of the month, or for DOW_IN_MONTH mode, a
830 * negative, in order to indicate special modes. The day of month
832 * set, and the day of week and day of month variables will be positive.
851 * month
856 * The range for month does not include UNDECIMBER since this class is
857 * really specific to GregorianCalendar, which does not use that month.