Lines Matching refs:currentDate
283 $currentDate = date('Y-m-d H:i');
284 $currentTime = strtotime($currentDate);
286 $currentDate = clone $currentTime;
288 $currentDate->setTimezone(new DateTimeZone(date_default_timezone_get()));
289 $currentDate = $currentDate->format('Y-m-d H:i');
290 $currentTime = strtotime($currentDate);
292 $currentDate = DateTime::createFromFormat('U', $currentTime->format('U'));
293 $currentDate->setTimezone(new DateTimeZone(date_default_timezone_get()));
294 $currentDate = $currentDate->format('Y-m-d H:i');
295 $currentTime = strtotime($currentDate);
299 $currentDate = $currentTime->format('Y-m-d H:i');
304 return $this->getNextRunDate($currentDate, 0, true)->getTimestamp() == $currentTime;
325 $currentDate = clone $currentTime;
327 $currentDate = DateTime::createFromFormat('U', $currentTime->format('U'));
328 $currentDate->setTimezone($currentTime->getTimezone());
330 $currentDate = new DateTime($currentTime ?: 'now');
331 $currentDate->setTimezone(new DateTimeZone(date_default_timezone_get()));
334 $currentDate->setTime($currentDate->format('H'), $currentDate->format('i'), 0);
335 $nextRun = clone $currentDate;
377 if ((!$allowCurrentDate && $nextRun == $currentDate) || --$nth > -1) {