Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^4: DateCalc using Date::Manip

by tsdesai (Acolyte)
on Jan 10, 2017 at 12:11 UTC ( [id://1179292]=note: print w/replies, xml ) Need Help??


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

did you try my $dtopt= DateCalc($dt1,$dt2,1); output is 0:4:4:2:0:0:0 or maybe these will work my $dtopt= DateCalc($dt1,$dt2,'semi'); 0:4:4:2:0:0:0 my $dtopt= DateCalc($dt1,$dt2,'approx'); 0:4:4:2:0:0:0 I am looking for the output as +0:0:+21:5:1:0:0 I am really sorry this is not my code.I am trying the fix old code after the version updates. Many Thanks,

Replies are listed 'Best First'.
Re^5: DateCalc using Date::Manip
by huck (Prior) on Jan 10, 2017 at 12:22 UTC

    ok one more to try

    print Delta_Format($dtopt,'semi','+%yv:%Mv:+%wv:%dv:%hv:%mv:%sv');
    based on the code from Krambambuli above but using semi

      I do not get any output for that one.

        ok a few more, since "semi and 'approx' gave the same output

        my $dtopt= DateCalc($dt1,$dt2,0);
        my $dtopt= DateCalc($dt1,$dt2,1);
        my $dtopt= DateCalc($dt1,$dt2,2);
        my $dtopt= DateCalc($dt1,$dt2,3);
        note how #4 is like Re^4: DateCalc using Date::Manip and if it works they should get the credit. We have seen exact=0 and approx=1 (or literal?), lets see what 2 or 3 give us. (maybe i should install the module and try it? im going from the docs here)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-25 15:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found