<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSTimeZone/local",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTimeZone(cpy)localTimeZone"
  },
  "title" : "local"
}
-->

# local

An object that tracks the current system time zone.

```
class var local: TimeZone { get }
```

## Discussion

Use this property when you want an object that always reflects the current system time zone. Contrast this behavior with that of the [`system`](/documentation/Foundation/NSTimeZone/system) class property, which has its value cached until you manually clear it by calling the [`resetSystemTimeZone()`](/documentation/Foundation/NSTimeZone/resetSystemTimeZone()) method.

> Important:
> In macOS High Sierra and later, iOS 11 and later, tvOS 11 and later, and watchOS 4 and later, the ``doc://com.apple.foundation/documentation/Foundation/NSTimeZone/local`` class property reflects the current system time zone, whereas previously it reflected the ``doc://com.apple.foundation/documentation/Foundation/NSTimeZone/default`` time zone.

Although the time zone obtained here automatically updates with the system, it provides no indication when system settings change. To receive notification of time zone changes, add an observer to the [`NSSystemTimeZoneDidChange`](/documentation/Foundation/NSNotification/Name-swift.struct/NSSystemTimeZoneDidChange) notification by using the [`addObserver(_:selector:name:object:)`](/documentation/Foundation/NotificationCenter/addObserver(_:selector:name:object:)).

---

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)