Simple check to see if two time periods overlap
1
2
3
//src - https://stackoverflow.com/a/13513973
bool overlap = a.start < b.end && b.start < a.end;
#date
origin - https://www.pipiscrew.com/?p=15151 overlap
Simple check to see if two time periods overlap
1
2
3
//src - https://stackoverflow.com/a/13513973
bool overlap = a.start < b.end && b.start < a.end;
#date
origin - https://www.pipiscrew.com/?p=15151 overlap