Time range made easy in PHP