isAWorkingHour() static public method

Is the hour passed is a working hour ?
static public isAWorkingHour ( $calendars_id, $day, $hour ) : boolean
$calendars_id id of the calendar
$day day number
$hour hour (Format HH:MM::SS)
return boolean
 /**
  * Is the time passed is in a working hour
  *
  * @since version 0.85
  *
  * @param $time    time  time to check
  *
  * @return boolean
  **/
 function isAWorkingHour($time)
 {
     if ($this->isAWorkingDay($time)) {
         $dayofweek = self::getDayNumberInWeek($time);
         return CalendarSegment::isAWorkingHour($this->fields['id'], $dayofweek, date('H:i:s', $time));
     }
     return false;
 }