Exemple #1
0
 /**
  * Output the debug message
  *
  * @param string $msg
  *
  */
 private static function _debug($msg = "", $newLine = self::NEW_LINE, $prefix = "", UDate $start = null)
 {
     $now = UDate::now(SystemSettings::getSettings(SystemSettings::TYPE_SYSTEM_TIMEZONE));
     if (self::$_debug === true) {
         echo $prefix . '[' . $now . ']: ' . $msg . ($start instanceof UDate ? '[ Took ' . ($now->getUnixTimeStamp() - $start->getUnixTimeStamp()) . ' second(s)]' : '') . $newLine;
     }
     return $now;
 }
Exemple #2
0
 /**
  * Test if the date is not equal to the date passed in
  *
  * @param UDate $dateTime The UDate object that we are compare with
  * 
  * @return bool
  */
 public function notEqual(UDate $dateTime)
 {
     return $this->getUnixTimeStamp() !== $dateTime->getUnixTimeStamp();
 }