in reply to Two Weeks
Alakaboo
"Who gave HIM a Perl interpreter?!"
Update:
#!/usr/bin/perl -w use strict; use Date::Manip qw(ParseDate DateCalc UnixDate); foreach my $i (0..13) { # create a date by subtracting iterator ($i) days from today my $date = &DateCalc('today', "-$i days"); # print the formatted date (DDmmmYY) print &UnixDate($date, '%d%b%y'), "\n"; }
merlyn's example is far superior to both Date::Manip and Date::Calc, and you should use that instead if you can.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (Date::) Re: Two Weeks
by ImpalaSS (Monk) on Nov 20, 2000 at 20:34 UTC | |
by mwp (Hermit) on Nov 20, 2000 at 20:43 UTC | |
by $code or die (Deacon) on Nov 21, 2000 at 00:05 UTC | |
by boo_radley (Parson) on Nov 20, 2000 at 22:51 UTC | |
by FouRPlaY (Monk) on Nov 21, 2000 at 00:42 UTC |