A message the system sends when the system clock changes.
Various events can initiate this message, such as a call to `settimeofday(_:_:)`, or if the person using the device changes values in Settings.
Observe this message with the identifier ``NotificationCenter/MessageIdentifier/systemClockDidChange``, or specify its type directly to the `addObserver(of:for:using:)` method.
The ``NotificationCenter/MainActorMessage/Subject`` of this message type is ``Date``.
This message interoperates with the notification ``NSNotification/Name/NSSystemClockDidChange``.
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.
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+
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.
init · iOS 26.0+
init
TypeScript
static init(): Date_SystemClockDidChangeMessage
Swift declaration
init()
Creates a message for a change in the system clock.