public function __construct($year = null, $month = null, $day = null) { $this->year = $year; $this->month = $month; $this->day = $day; }
public function __construct($dateTime, DateTimeZone $zone = null) { parent::__construct($dateTime); if ($zone) { $this->dateTime->setTimezone($zone); } }