Пример #1
0
 public function hitTimeArea($date)
 {
     /*{{{*/
     foreach (self::$DATE_FORMAT as $property) {
         $start = (int) $this->{'start_' . $property};
         $end = (int) $this->{'end_' . $property};
         $now = (int) $date->{$property};
         if ($start != -1 && $end != -1 && ($now > $end || $now < $start)) {
             CronLogger::debug("miss area {$property} now={$now}  start={$start} end={$end}");
             return false;
         }
     }
     return true;
 }