Logo Search packages:      
Sourcecode: icu version File versions

int8_t Grego::monthLength ( int32_t  year,
int32_t  month 
) [inline, static]

Return the number of days in the given month.

Parameters:
year Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc.
month 0-based month, with 0==Jan
Returns:
the number of days in the given month

Definition at line 264 of file gregoimp.h.

References isLeapYear().

Referenced by dayOfWeekInMonth(), TimeZone::getOffset(), SimpleTimeZone::getOffset(), RuleBasedTimeZone::getOffset(), OlsonTimeZone::getOffset(), SimpleTimeZone::getOffsetFromLocal(), AnnualTimeZoneRule::getStartInYear(), and previousMonthLength().

                                              {
    return MONTH_LENGTH[month + (isLeapYear(year) ? 12 : 0)];
}


Generated by  Doxygen 1.6.0   Back to index