---
title: "localizedName(_:locale:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nstimezone/localizedname(_:locale:)"
---

# localizedName(_:locale:)

Returns the localized name of the time zone.

## Declaration

```swift
func localizedName(_ style: NSTimeZone.NameStyle, locale: Locale?) -> String?
```

## Parameters

- `style`: The format style for the returned string.
- `locale`: The locale for which to format the name.

## Return Value

Return Value The name of the receiver localized for locale using style.

## See Also

### Describing Time Zones

- [description](foundation/nstimezone/description.md)
