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

int icaltime_is_leap_year ( const int  year  ) 

Return whether you've specified a leapyear or not.

Definition at line 568 of file icaltime.c.

{

    if (year <= 1752)
        return (year % 4 == 0);
    else
        return ( (year % 4==0) && (year % 100 !=0 )) || (year % 400 == 0);
}


Generated by  Doxygen 1.6.0   Back to index