Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: How do I find the difference in days between two dates, in a cool perl way?

by phenom (Chaplain)
on May 10, 2004 at 23:04 UTC ( [id://352242]=note: print w/replies, xml ) Need Help??


in reply to How do I find the difference in days between two dates, in a cool perl way?

Using Date::Calc:
#!/usr/bin/perl use strict; use warnings; use Date::Calc qw/Delta_Days/; my @first = (2001, 9, 12); my @second = (2004, 3, 11); my $dd = Delta_Days( @first, @second ); print "Difference in days: $dd\n";

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-03-28 17:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found