In the most simplest terms this is a PHP function that will tell you if a given time is between a given start and end time, even if the span crosses midnight. In other words, it answers the question is 3 AM is between 2020-12-01 11 PM and 2020-12-02 6 AM?. Arriving at the correct answer is more complicated than one would expect. Hopefully the solution shown here comes across as simple.
Unibia.net Open Source Software Section