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.
In reply to Re^2: Comparing timestamps that are in 2 different but defined styles
by thunders
in thread Comparing timestamps that are in 2 different but defined styles
by technojosh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |