One Logo Pool Ball
Foundation · IOS API REFERENCE

TimeZone.SystemTimeZoneDidChangeMessage

struct · iOS 26.0+ · SDK 27.1

struct SystemTimeZoneDidChangeMessage

A message the system sends when the system time zone changes. Observe this message with the identifier ``NotificationCenter/MessageIdentifier/systemTimeZoneDidChange``, or specify its type directly to the `addObserver(of:for:using:)` method. The ``NotificationCenter/MainActorMessage/Subject`` of this message type is ``TimeZone``. This message interoperates with the notification ``NSNotification/Name/NSSystemTimeZoneDidChange``. The system notifies observers of the message when the ``NotificationCenter`` posts the notification. Similarly, the system notifies observers of the notification when it posts the message.

Members (5)

static · iOS 26.0+

makeMessage

TypeScript
static makeMessage(notification: Notification): Promise<(TimeZone_SystemTimeZoneDidChangeMessage) | null>
Swift declaration
@MainActor static func makeMessage(_ notification: Notification) -> TimeZone.SystemTimeZoneDidChangeMessage?

Converts a posted notification into this main actor message type for any observers. To implement this method in your own `MainActorMessage` conformance, retrieve values from the ``Notification``'s ``Notification/userInfo`` and set them as properties on the message. - Parameter notification: The posted ``Notification``. - Returns: The converted `MainActorMessage` or `nil` if conversion is not possible.

get · iOS 26.0+

previousTimeZone

TypeScript
get previousTimeZone(): (TimeZone) | null
Swift declaration
var previousTimeZone: TimeZone?

The previous system time zone, prior to the change.

set · iOS 26.0+

previousTimeZone

TypeScript
set previousTimeZone(value: (TimeZone) | null)
Swift declaration
var previousTimeZone: TimeZone?

The previous system time zone, prior to the change.

init · iOS 26.0+

init

TypeScript
static init(previousTimeZone?: (TimeZone) | null): TimeZone_SystemTimeZoneDidChangeMessage
Swift declaration
init(previousTimeZone: TimeZone?)

Creates a message for a change in the system time zone. - Parameter previousTimeZone: The system's time zone prior to the change.

get · iOS 26.0+

name

TypeScript
static get nameValue(): NSNotification_Name
Swift declaration
static var name: Notification.Name { get }

A optional name corresponding to this type, used to interoperate with notification posters and observers.

Skipped declarations

No declarations were skipped in this snapshot.

All Foundation types →