Пример #1
0
 public function minus(Duration $duration)
 {
     $date = $this->toDateTime();
     $date->sub($duration->asPHPDateInterval());
     return $this->fromDateTime($date);
 }