Пример #1
0
 /**
  * Getter
  * @param Date $otherDate
  * @return bool
  */
 public function isGreaterThan(Date $otherDate)
 {
     return $this->__toString() > $otherDate->__toString();
 }
Пример #2
0
 /**
  * Formats a date
  *
  * @param Date $input
  *
  * @return string
  */
 public function formatDate(Date $input)
 {
     return $input->format($this->getCurrentFormat());
 }