public function inTimezone(string $timeZoneId) : TimezonedDateTime
    {
        return new TimezonedDateTime(
                \DateTimeImmutable::createFromFormat(
                        self::DISPLAY_FORMAT,
                        $this->format(self::DISPLAY_FORMAT),
                        new \DateTimeZone($timeZoneId)
                )
        );
    }
public function inTimezone(string $timeZoneId) : TimezonedDateTime
    {
        return new TimezonedDateTime(
                \DateTimeImmutable::createFromFormat(
                        self::DISPLAY_FORMAT,
                        $this->format(self::DISPLAY_FORMAT),
                        new \DateTimeZone($timeZoneId)
                )
        );
    }
public function inTimezone ( string $ timeZoneId ) : TimezonedDateTime { return new TimezonedDateTime ( \ DateTimeImmutable :: createFromFormat ( self :: DISPLAY_FORMAT , $ this -> format ( self :: DISPLAY_FORMAT ) , new \ DateTimeZone ( $ timeZoneId ) ) ) ; }
Returns the current date time as if it were in the supplied timezone

@param string $timeZoneId

@return TimezonedDateTime
Returns the current date time as if it were in the supplied timezone