<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.5.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSTimeZone/localizedName(_:locale:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTimeZone(im)localizedName:locale:"
  },
  "title" : "localizedName(_:locale:)"
}
-->

# localizedName(_:locale:)

Returns the localized name of the time zone.

```
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

The name of the receiver localized for `locale` using `style`.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)