Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2019-11-19 20:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (96 votes). Check out past polls.

    Notices?