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.
|
---|
In Section
Seekers of Perl Wisdom