Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re^2: DateCalc using Date::Manip

by Krambambuli (Curate)
on Jan 10, 2017 at 11:41 UTC ( #1179281=note: print w/replies, xml ) Need Help??

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


 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
      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

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1179281]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (1)
As of 2022-11-27 18:23 GMT
Find Nodes?
    Voting Booth?