local
An object that tracks the current system time zone.
Declaration
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 class property, which has its value cached until you manually clear it by calling the resetSystemTimeZone() method.
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 notification by using the addObserver(_:selector:name:object:).