Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Difference between two dates in years

by ambrus (Abbot)
on May 14, 2013 at 14:52 UTC ( #1033496=note: print w/ replies, xml ) Need Help??


in reply to Difference between two dates in years

Try Date::Manip.

use Date::Manip; $dyear = Delta_Format(DateCalc('1925-12-22 00:00UTC', '2012-03-22 00:0 +0UTC'), '%yys'); # $dyear is now 86.249, the difference between the two dates in years


Comment on Re: Difference between two dates in years
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (14)
As of 2014-07-10 20:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (215 votes), past polls