Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Day/Date Modification

by duckyd (Hermit)
on Aug 22, 2007 at 23:28 UTC ( [id://634544] : note . print w/replies, xml ) Need Help??


in reply to Day/Date Modification

You may also find DateTime useful:
use DateTime; my $date = DateTime->new( year => 2007, month => 8, day => 25, hour => 23, minute => 59, second => 59, time_zone => 'UTC', ); print $date->ymd, "\t", $date->hms, "\n"; $date->add( hours => 36 ); print $date->ymd, "\t", $date->hms, "\n";
Outputs:
2007-08-25 23:59:59 2007-08-27 11:59:59