private static function createNative(
        int $year,
        int $month,
        int $day,
        int $hour,
        int $minute,
        int $second,
        string $timezone
    ): DateTimeImmutable {
        $time = sprintf('%04d-%02d-%02dT%02d:%02d:%02d', $year, $month, $day, $hour, $minute, $second);

        return DateTimeImmutable::createFromFormat(self::STRING_FORMAT, $time, new DateTimeZone($timezone));
    }
private static function createNative(
        int $year,
        int $month,
        int $day,
        int $hour,
        int $minute,
        int $second,
        string $timezone
    ): DateTimeImmutable {
        $time = sprintf('%04d-%02d-%02dT%02d:%02d:%02d', $year, $month, $day, $hour, $minute, $second);

        return DateTimeImmutable::createFromFormat(self::STRING_FORMAT, $time, new DateTimeZone($timezone));
    }
private static function createNative ( int $ year , int $ month , int $ day , int $ hour , int $ minute , int $ second , string $ timezone ) : DateTimeImmutable { $ time = sprintf ( '%04d-%02d-%02dT%02d:%02d:%02d' , $ year , $ month , $ day , $ hour , $ minute , $ second ) ; return DateTimeImmutable :: createFromFormat ( self :: STRING_FORMAT , $ time , new DateTimeZone ( $ timezone ) ) ; }
Creates a native DateTime from date and time values

@param int    $year     The year
@param int    $month    The month
@param int    $day      The day
@param int    $hour     The hour
@param int    $minute   The minute
@param int    $second   The second
@param string $timezone The timezone

@return DateTimeImmutable
Creates a native DateTime from date and time values