> I'm getting strange results from a business days calculation with > Date::Manip. Everything works as expected if I use a number of days > between 1 and 6, but after 6 the resulting date doesn't seem to be > based on business days. > > my $unparsed_date = DateCalc("today","+ 6 days",3); > my $date = UnixDate($unparsed_date,"%Y%m%d"); > > returns 20130405. Changing to "+ 7 days" returns 20130404 instead of > the expected 20130408. Today is 20130328. > > Does anyone know why this is happening?
What happens if you remove the ',3' from the $unparsed_date calculation? Cos I am not sure that is an argument in that Date::Calc computation. -- Owen -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/