Help for this page

Select Code to Download


  1. or download this
    use Time::Local;
    
    ...
    
    # subtract a day from it (86400 seconds)
    my $month_last_day = $next_month_noon - 86400;
    
  2. or download this
    # my code above, as a function
    sub lastday_time {
    ...
    
      return $d == $last_day;
    }