コード例 #1
0
ファイル: ZonedDateTime.php プロジェクト: brick/date-time
 /**
  * Returns a copy of this ZonedDateTime with the specified period in years added.
  *
  * @param integer $years
  *
  * @return ZonedDateTime
  */
 public function plusYears($years)
 {
     return ZonedDateTime::of($this->localDateTime->plusYears($years), $this->timeZone);
 }