Help for this page

Select Code to Download


  1. or download this
    # get the date of yesterday
    my $nowsecond = time ();
    ...
    $day = sprintf("%.2d", $day);
    $month = sprintf("%.2d",$month+1);
    $year = $year + 1900;
    
  2. or download this
           my $datestr = "$year.01.01-$year.$month.$day";