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

Re: Date Difference using Date::Manip module

by perladdict (Chaplain)
on Apr 11, 2011 at 09:50 UTC ( #898684=note: print w/ replies, xml ) Need Help??


in reply to Date Difference using Date::Manip module

#!/usr/local/bin/perl use Time::Local; # months start at 0 # years have 1900 subtracted: ###time=timelocal($sec, $min, $hours, $day, $mon, $year) $time1=timelocal(30, 20, 18, , 2, 7, 106); $time2=timelocal(45, 15, 12, , 4, 7, 106); $time3=$time2-$time1; print "$time3 difference in seconds\n";


Comment on Re: Date Difference using Date::Manip module
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (13)
As of 2014-09-22 19:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (198 votes), past polls