kidd has asked for the wisdom of the Perl Monks concerning the following question:
A couple of months ago I aked a question about how could I create expiration dates...
And that's were they suggested this solution:
use POSIX qw[strftime]; my $days = 30; my $newExpiration = strftime('%Y%m%d', localtime(time + 60 * 60 * 24 * + $days));
But now I want to know if there is a way to make this same operation but with another date that it isnt the actual date...
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Date operations
by grep (Monsignor) on Aug 11, 2002 at 22:49 UTC | |
by kidd (Curate) on Aug 11, 2002 at 23:16 UTC | |
by grep (Monsignor) on Aug 11, 2002 at 23:36 UTC | |
by fglock (Vicar) on Aug 12, 2002 at 20:20 UTC | |
|
Re: Date operations
by greenFox (Vicar) on Aug 12, 2002 at 02:52 UTC | |
|
Re: Date operations
by mojotoad (Monsignor) on Aug 11, 2002 at 23:48 UTC | |
by Anonymous Monk on Aug 12, 2002 at 06:25 UTC |