Is another way to do it.#!/usr/local/bin/perl use Time::Piece; use Time::Seconds; use strict; my $time = Time::Piece->strptime( '2004-03-09 15:30:00', '%Y-%m-%d % +H:%M:%S' ); my $new_time = $time + (ONE_DAY * 3) print "$new_time\n";
In reply to Re: How do you add dates to a certain user provided date?
by jdtoronto
in thread How do you add dates to a certain user provided date?
by Perl_Student
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |