예제 #1
0
파일: Date.php 프로젝트: rouffj/timemachine
 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());
 }