F0x7 / Days_in_month

iOS, Objective C
0 stars 0 forks source link

leap year #1

Open bakaikin opened 10 years ago

bakaikin commented 10 years ago

what is this: if((_year.text.intValue % 4 == 0 && _year.text.intValue % 100 != 0)|| _year.text.intValue % 400 == 0){ yearArray[1] = LEAP_YEAR_FEBRUARY;

???

F0x7 commented 10 years ago

This is condition of leap year. P.S. I take it from http://edunow.su/site/content/algorithms/how_to_identify_a_leap_year