Logo Search packages:      
Sourcecode: libical version File versions  Download package

int icaltime_days_in_month ( const int  month,
const int  year 
)

Return the number of days in the given month

Definition at line 588 of file icaltime.c.

{

    int days = _days_in_month[month];

    assert(month > 0);
    assert(month <= 12);

    if( month == 2){
      days += icaltime_is_leap_year(year);
    }

    return days;
}


Generated by  Doxygen 1.6.0   Back to index