To guard against the infinite loop / leapsecond / 59 second minute
my $failsafe = 0; $time += 60 until localtime($time) =~ /$on_at:/ or $failsafe++ > +10_000;
Adjust the failsafe cutoff until its just large enough but not too large :) If it slows down this approach change it :) maybe use strptime
In reply to Re^2: Logical ways to calculate being within two times
by Anonymous Monk
in thread Logical ways to calculate being within two times
by stevieb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |