I played around with this a bit and (without actually verifying the math) ended up with the following:
#!/usr/bin/perl use strict; use Date::Manip; my $start = Date::Manip::ParseDate('2013-10-03 00:00:00'); my $end = Date::Manip::ParseDate('2013-12-09 00:00:00'); print "$start\n"; print "$end\n"; #Standard Days my $standard_delta = Date::Manip::DateCalc($start,$end,1); print "$standard_delta\n"; my $standard_days = Date::Manip::Delta_Format($standard_delta,2,%dyd') +; print "$standard_days\n"; #Business Days my $business_delta = Date::Manip::DateCalc($start,$end,2); print "$business_delta\n"; my $business_days = Date::Manip::Delta_Format($business_delta,2,'%dyd' +); print "$business_days\n";
With output that looks like:
2013100300:00:00 2013120900:00:00 +0:2:+0:6:0:0:0 66.87375 +0:2:+0:+4:0:0:0 64.87375
Note: that I am using a newer version than you state that you are, but as close as I can tell from a cursory glance through the CPAN docs, the functionality has not changed. (I may be wrong about that, but it will only take a second to copy the above and try it. If I am wrong, you waste a copy/paste ->save->run amount of time, not much more...).

Hope that is helpful... Update: Changed format directive from '%dydt' to '%dyd', thus changing the output to exclude the 't' from the end of the calculated days.

...the majority is always wrong, and always the last to know about it...
Insanity: Doing the same thing over and over again and expecting different results.

In reply to Re: DateManip Delta_Format Usage by wjw
in thread DateManip Delta_Format Usage by nabrown737

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.