Help for this page

Select Code to Download


  1. or download this
    sub IsLeapYear
    {
    ...
       return 0 if $year % 400;
       return 1;
    }
    
  2. or download this
    IsLeapYear(2006);
    
  3. or download this
    my $days_in_February = IsLeapYear($year) ? 29 : 28;