Posts Overlap
Post
Cancel

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

This post is licensed under CC BY 4.0 by the author.
Contents

Trending Tags