Why not convert your start times to epoch time and calculate an end time as an epoch time, when you receive the start/duration pair. After that, all the problems of midnight disappear.
In reply to Re: Logical ways to calculate being within two times
by BrowserUk
in thread Logical ways to calculate being within two times
by stevieb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |