Esempio n. 1
0
 /**
  * Test if this date/time is exactly equal to a certian date/time
  *
  * Test if this date/time is exactly equal to a certian date/time
  *
  * @access public
  * @param
  *        	object Date $when the date to test against
  * @return boolean true if this date is exactly equal to $when
  */
 function equals($when)
 {
     if (Date::compare($this, $when) == 0) {
         return true;
     } else {
         return false;
     }
 }