public static function timeslotlist() { $datetoday = Fun::datetoday(); $times = array(); for ($i = 0; $i < 24; $i++) { $times[] = Fun::timetotime($datetoday + $i * 3600) . " - " . Fun::timetotime($datetoday + ($i + 1) * 3600 - 1); } return $times; }