Exemple #1
0
 /**
  * TODO Should be package local
  * @internal
  * @param LocalDate $end
  * @return int
  */
 function daysUntil(LocalDate $end)
 {
     return $end->toEpochDay() - $this->toEpochDay();
     // no overflow
 }
 public function toEpochDay()
 {
     return $this->isoDate->toEpochDay();
 }