Ejemplo n.º 1
0
 private function daysUntil(ChronoLocalDate $end)
 {
     return $end->toEpochDay() - $this->toEpochDay();
     // no overflow
 }
 /**
  * @inheritdoc
  */
 public function isEqual(ChronoLocalDate $other)
 {
     return $this->toEpochDay() == $other->toEpochDay();
 }