http://qs321.pair.com?node_id=1179281


in reply to Re: DateCalc using Date::Manip
in thread DateCalc using Date::Manip

Try

 print Delta_Format($dtopt,0,'+%yv:%Mv:+%wv:%dv:%hv:%mv:%sv');

instead of your print line.

It's probably not the newer Perl that bites you, but rather the newer Date::Manip module that you are using.
Try to check what you have in Date::Manip::DM6.

A bit strange; the raw value that I see for the delta calculated from the date values you provided is 0:0:0:110:0:0:0, which isn't equal with what your systems are giving.

Replies are listed 'Best First'.
Re^3: DateCalc using Date::Manip
by tsdesai (Acolyte) on Jan 10, 2017 at 12:05 UTC
    I have tried what you said and it gives me +0:0:+0:0:3648:0:0
      Try
      my $err; my $dtopt= DateCalc( $dt1 ,$dt2, \$err, 3);
      instead of your original code to do the calculation.
Re^3: DateCalc using Date::Manip
by tsdesai (Acolyte) on Jan 10, 2017 at 12:45 UTC
    I think depending upon o or 1 the output changes. I have now tried your same code and I get the same output as you. Many Thanks, T