Contents

Date.SystemClockDidChangeMessage

A message the system sends when the system clock changes.

Declaration

struct SystemClockDidChangeMessage

Overview

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 systemClockDidChange, or specify its type directly to the addObserver(of:for:using:) method. The Subject of this message type is Date.

This message interoperates with the notification 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.

Topics

Creating a message for a system clock change