Declaration

Discussion

Use this property when you want an object that always reflects the current system time zone. Contrast this behavior with that of the systemTimeZone class property, which has its value cached until you manually clear it by calling the resetSystemTimeZone method.

Important

In macOS High Sierra and later, iOS 11 and later, tvOS 11 and later, and watchOS 4 and later, the localTimeZone class property reflects the current system time zone, whereas previously it reflected the defaultTimeZone time zone.