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

Re^2: Comparing timestamps that are in 2 different but defined styles

by thunders (Priest)
on Jul 28, 2010 at 19:52 UTC ( #851779=note: print w/ replies, xml ) Need Help??


in reply to Re: Comparing timestamps that are in 2 different but defined styles
in thread Comparing timestamps that are in 2 different but defined styles

Doh, good point guys. I wasn't thinking.

Here's another option: turn the values returned by POSIX::strptime into a UNIX epoch with Time::Local, then subtracting that from the value given by time() and seeing if abs($diff) < 60.


Comment on Re^2: Comparing timestamps that are in 2 different but defined styles

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2015-07-04 09:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (59 votes), past polls