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/
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Adding to dates
by bobrobclob (Initiate) on Aug 08, 2002 at 14:34 UTC | |
by DamnDirtyApe (Curate) on Aug 08, 2002 at 15:43 UTC | |
Re: Re: Adding to dates
by bobrobclob (Initiate) on Aug 08, 2002 at 14:26 UTC |
In Section
Seekers of Perl Wisdom