Lines Matching refs:time
124 list($date, $time) = explode(' ', trim($start), 2);
128 $time = $this->autocompleteTime($time);
129 return strtotime($date.' '.$time);
144 // only time given
187 private function autocompleteTime($time, $end=false)
189 if (!preg_match('/^\d{2}:\d{2}:\d{2}$/', $time)) {
190 if (preg_match('/^\d{2}:\d{2}$/', $time)) {
191 return ($end) ? $time.':59' : $time.':00';
192 } elseif (preg_match('/^\d{2}$/', $time)) {
193 return ($end) ? $time.':59:59': $time.':00:00';
198 return $time;