Exemplo n.º 1
0
 /**
  * Check if date is tomorrow
  *
  * @access public
  * @param object ilDateTime DateTime object to check
  * @return bool
  * @static
  */
 public static function isTomorrow(ilDateTime $date)
 {
     global $ilUser;
     if (!is_object(self::$tomorrow)) {
         self::$tomorrow = new ilDateTime(time(), IL_CAL_UNIX, $ilUser->getTimeZone());
         self::$tomorrow->increment(IL_CAL_DAY, 1);
     }
     return ilDateTime::_equals(self::$tomorrow, $date, IL_CAL_DAY, $ilUser->getTimeZone());
 }