http://www.perlmonks.org?node_id=188582


in reply to Adding to dates

This is really easy to do. Here:

# define the seconds in a week use constant WEEK => 60 * 60 * 24 * 7; my $now = time(); my $then = $now + WEEK * 2;

Or, to one-line it:

my $then = time() + 1209600;

--
perl -e "print qq/just another perl hacker who doesn't grok japh\n/"
simeon2000|http://holdren.net/