in reply to Re: Logical ways to calculate being within two times
in thread Logical ways to calculate being within two times
One possible caveat of the epoch time calculation.
If you set a time that happens to coincide to the minute, with the subtraction of a leap second, then the until loop may never terminate.
The solution is to add 30 rather than 60 each iteration.
Of course, if your processor doesn't use NTP or some similar method to synchronise its system clock, the problem is probably moot.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Logical ways to calculate being within two times (leaps)
by tye (Sage) on Nov 28, 2016 at 21:26 UTC | |
by BrowserUk (Patriarch) on Nov 28, 2016 at 21:37 UTC | |
by tye (Sage) on Nov 28, 2016 at 21:43 UTC | |
by BrowserUk (Patriarch) on Nov 28, 2016 at 22:50 UTC |