/**
  * Render the view helper
  *
  * Note: You have to wrap this view helper in an f:if ViewHelper.
  * This VH just return a boolean evaluation value
  *
  * @param string|\DateTime $base
  * @param string|\DateTime $check
  *
  * @return string
  */
 public function render($base, $check)
 {
     $base = DateTimeUtility::normalizeDateTimeSingle($base);
     $check = DateTimeUtility::normalizeDateTimeSingle($check);
     return $base > $check;
 }
Example #2
0
 /**
  * Get the complete end date
  *
  * @return \DateTime
  */
 public function getEndDateComplete()
 {
     $date = $this->getEndDate();
     if (!$this->isAllDay()) {
         $time = DateTimeUtility::normalizeDateTimeSingle($this->getEndTime());
         $date->setTime($time->format('H'), $time->format('i'), 0);
     }
     return $date;
 }