http://www.perlmonks.org?node_id=851779


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