good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: Comparing timestamps that are in 2 different but defined stylesby apl (Monsignor) |
on Jul 24, 2010 at 12:01 UTC ( [id://851161]=note: print w/replies, xml ) | Need Help?? |
Concept is great, but OP just has to be careful when implementing it, as edge conditions always bite us. 8:59:01 compared to 9:00:00 is less than a minute to my eye, but wouldn't pass the generally correct test.
Similar problem with 9:00:59 and 9:01:01, when you're comparing seconds ...
In Section
Seekers of Perl Wisdom
|
|