Пример #1
0
 public function during(Duration $duration)
 {
     $begin = new TimePoint($this->year, $this->month, $this->day, 0, 0);
     $end = $begin->plus($duration);
     return new DateInterval($begin->getDate(), $end->getDate());
 }