Home | History | Annotate | Download | only in i18n

Lines Matching full:month

275  *       day of week in the month (e.g., (2, WEDNESDAY) is the second Wednesday
276 * of the month).
278 * the day of week in the month counting backward from the end of the month.
279 * (e.g., (-1, MONDAY) is the last Monday in the month)
281 * specifies the day of the month, regardless of what day of the week it is.
282 * (e.g., (10, 0) is the tenth day of the month)
284 * specifies the day of the month counting backward from the end of the
285 * month, regardless of what day of the week it is (e.g., (-2, 0) is the
286 * next-to-last day of the month).
288 * first specified day of the week on or after the specfied day of the month.
289 * (e.g., (15, -SUNDAY) is the first Sunday after the 15th of the month
292 * last specified day of the week on or before the specified day of the month.
293 * (e.g., (-20, -TUESDAY) is the last Tuesday before the 20th of the month
295 * @param month the daylight savings starting month. Month is 0-based.
298 * day-of-week-in-month. Please see the member description for an example.
306 SimpleTimeZone::setStartRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek,
309 startMonth = (int8_t)month;
321 SimpleTimeZone::setStartRule(int32_t month, int32_t dayOfMonth,
324 setStartRule(month, dayOfMonth, 0, time, mode, status);
330 SimpleTimeZone::setStartRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
333 setStartRule(month, after ? dayOfMonth : -dayOfMonth,
347 * @param month the daylight savings ending month. Month is 0-based.
350 * day-of-week-in-month. See setStartRule() for a complete explanation.
358 SimpleTimeZone::setEndRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek,
361 endMonth = (int8_t)month;
373 SimpleTimeZone::setEndRule(int32_t month, int32_t dayOfMonth,
376 setEndRule(month, dayOfMonth, 0, time, mode, status);
382 SimpleTimeZone::setEndRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
385 setEndRule(month, after ? dayOfMonth : -dayOfMonth,
392 SimpleTimeZone::getOffset(uint8_t era, int32_t year, int32_t month, int32_t day,
395 // Check the month before calling Grego::monthLength(). This
402 if(month < UCAL_JANUARY || month > UCAL_DECEMBER) {
407 return getOffset(era, year, month, day, dayOfWeek, millis, Grego::monthLength(year, month), status);
411 SimpleTimeZone::getOffset(uint8_t era, int32_t year, int32_t month, int32_t day,
415 // Check the month before calling Grego::monthLength(). This
422 if (month < UCAL_JANUARY
423 || month > UCAL_DECEMBER) {
428 // We ignore monthLength because it can be derived from year and month.
431 return getOffset(era, year, month, day, dayOfWeek, millis,
432 Grego::monthLength(year, month),
433 Grego::previousMonthLength(year, month),
438 SimpleTimeZone::getOffset(uint8_t era, int32_t year, int32_t month, int32_t day,
446 || month < UCAL_JANUARY
447 || month > UCAL_DECEMBER
469 // month are different.
474 int32_t startCompare = compareToRule((int8_t)month, (int8_t)monthLength, (int8_t)prevMonthLength,
488 endCompare = compareToRule((int8_t)month, (int8_t)monthLength, (int8_t)prevMonthLength,
515 int32_t year, month, dom, dow;
519 Grego::dayToFields(day, year, month, dom, dow);
521 savingsDST = getOffset(GregorianCalendar::AD, year, month, dom,
523 Grego::monthLength(year, month),
548 Grego::dayToFields(day, year, month, dom, dow);
549 savingsDST = getOffset(GregorianCalendar::AD, year, month, dom,
551 Grego::monthLength(year, month),
568 SimpleTimeZone::compareToRule(int8_t month, int8_t monthLen, int8_t prevMonthLen,
582 /* When incrementing the month, it is desirible to overflow
584 * compare against a real month. Wraparound of the value
586 ++month;
595 --month;
601 if (month < ruleMonth) return -1;
602 else if (month > ruleMonth) return 1;
604 // calculate the actual day of month for the rule
614 // if the mode is day-of-month, the day of month is given
619 // if the mode is day-of-week-in-month, calculate the day-of-month from it
621 // In this case ruleDay is the day-of-week-in-month (this code is using
623 // of the first day of the month, so it's trusting that they're really
630 // the same calculation figuring backward from the last day of the month.
635 // the day of week of the first of the month)
654 // now that we have a real day-in-month for the rule, we can compare days...
774 // 5 the fifth of the month
775 // lastSun the last Sunday in the month
776 // lastMon the last Monday in the month
791 // startDay The day of the month, or for DOW_IN_MONTH mode, a
827 * negative, in order to indicate special modes. The day of month
829 * set, and the day of week and day of month variables will be positive.
848 * month 0..11 same same same don't care
853 * The range for month does not include UNDECIMBER since this class is
854 * really specific to GregorianCalendar, which does not use that month.