format( 'U' ); } public function setUtcOffset( $offset ) { $this->utcOffset = intval( $offset ); } #[\ReturnTypeWillChange] public function getOffset() { return $this->utcOffset ? $this->utcOffset : parent::getOffset(); } #[\ReturnTypeWillChange] public function setTimezone( $timezone ) { $this->utcOffset = 0; parent::setTimezone( $timezone ); return $this; } public function getOffsetTimestamp() { return $this->getTimestamp() + $this->getOffset(); } }