Now, this is fine if you want to work out the date say: one month from January 6 2001. But if you want to work out the date one month from January 29 2000 - it falls down (there is no February 29 2001 - or April/May/September/etc 31st). I was using strict and warnings and I didn't get an error - just a blank screen.my @DateToday = Date::Calc::Today_and_Now(); # ($year,$month,$d +ay, $hour,$min,$sec) my @MonthAhead = Date::Calc::Add_Delta_YMD($DateToday[0],$DateToday[1] +,$DateToday[2],0,+1,0);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Year /^\d+$/ bug!
by footpad (Abbot) on Nov 30, 2000 at 03:28 UTC | |
by Blue (Hermit) on Nov 30, 2000 at 19:57 UTC | |
|
Re: Year /^\d+$/ bug!
by Blue (Hermit) on Nov 30, 2000 at 00:44 UTC | |
by $code or die (Deacon) on Nov 30, 2000 at 00:59 UTC | |
by extremely (Priest) on Nov 30, 2000 at 04:42 UTC | |
by Blue (Hermit) on Nov 30, 2000 at 01:05 UTC | |
by $code or die (Deacon) on Nov 30, 2000 at 01:18 UTC | |
|
Re: Year /^\d+$/ bug!
by chipmunk (Parson) on Nov 30, 2000 at 00:53 UTC | |
by $code or die (Deacon) on Nov 30, 2000 at 01:03 UTC | |
|
Re: Year /^\d+$/ bug!
by AgentM (Curate) on Nov 30, 2000 at 01:55 UTC | |
|
Re: Year /^\d+$/ bug!
by gaspodethewonderdog (Monk) on Nov 30, 2000 at 00:37 UTC | |
by $code or die (Deacon) on Nov 30, 2000 at 00:45 UTC |