Esempio n. 1
0
 /**
  * Check if an interval array is all day.
  *
  * @param Time $start The start time.
  * @param Time $end The end time.
  * @return boolean
  */
 private static function isIntervalAllDay(Time $start, Time $end)
 {
     if ($start->getHours() !== 0 || $start->getMinutes() !== 0 || $start->getSeconds() !== 0) {
         return false;
     }
     if ($end->getHours() !== 24 || $end->getMinutes() !== 0 || $end->getSeconds() !== 0) {
         return false;
     }
     return true;
 }