Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Difference between two dates in years

by vagabonding electron (Curate)
on May 14, 2013 at 16:41 UTC ( [id://1033522]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/perl
    use strict;
    ...
    print "$result years\n";
    $result = $diff->days;
    print "$result days\n";
    
  2. or download this
    C:\Perl\bin>perl pm_1033486.pl
    86.2496055700018 years
    31502 days
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-25 11:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found