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