Perl Monk, Perl Meditation | |
PerlMonks |
Re: How do I find difference between two timestamps?by castaway (Parson) |
on Nov 17, 2004 at 08:49 UTC ( [id://408334]=note: print w/replies, xml ) | Need Help?? |
You could also skip all this 'figuring out what format that is, and passing it to something', and use a module that parses exactly what you have there, to wit: Time::ParseDate.
Gives me: Mon Nov 15 18:59:52 2004 Which looks good to me. So just run parsedate() on both, subtract the results, then all you'll need to do is convert the resulting number of seconds to something you understand ,) C.
In Section
Seekers of Perl Wisdom
|
|