DaysInFebruary

From Pickwiki
Jump to navigationJump to search

The number of days in February is 29 in a leap year, 28 otherwise. By generating the yyyy-02-29 date and testing the success of Iconv we have an easy test for whether this is a leap year. Status() returns 0 in this case, 3 otherwise.