public static function is_running_today($routeName, $time=NULL, $strict=FALSE) { if ($time === NULL) $time = time(); $routeInfo = self::get_route_info($routeName); if (!$routeInfo) return FALSE; if (array_key_exists('excludeHolidays', $routeInfo)) { if (AcademicCalendar::is_holiday($time)) if ($strict || AcademicCalendar::is_holiday($time + 86400)) return FALSE; } // for year-round shuttles if (count($routeInfo['dates']) == 0) return TRUE; // shuttles with limite date ranges foreach ($routeInfo['dates'] as $dateRange) { // allow them to view times up to 1 day from now if ($dateRange->contains_point($time) || (!$strict && $dateRange->contains_point($time + 86400))) return TRUE; } return FALSE; }