Help for this page

Select Code to Download


  1. or download this
    my $today_wday = (localtime)[6];
    my $then_wday  = ($today_wday + $days_in_the_future) % 7;
    
  2. or download this
    use Time::Local;
    
    ...
    
    my $epoch       = timelocal 0, 0, 0, $d, $m-1, $y-1900;
    my $wday        = (localtime $epoch)[6];