Help for this page

Select Code to Download


  1. or download this
    i/p
    31: req time is  2006-05-17 12:00:00
    ...
    431: date 1 is 2006-05-17 13:00:00
    but the final value I get is 
    2006-05-23 14:00:00
    
  2. or download this
    $req_time = got value from db;
    ($date,$time) = split(/ /, $req_time);
    ...
        $req_date = timelocal($sec, $min, $hour, $day, --$month, $year); 
    $rtime = $req_date + 1*60*60;
     my $date1 = strftime '%Y-%m-%d %H:%M:%S', localtime $rtime;