setTimeZone(_:)
Sets the time zone to use when displaying time information.
Declaration
func setTimeZone(_ timeZone: TimeZone?)Parameters
- timeZone:
The time zone to be used. Specifying
nilremoves the time zone information and causes Apple Watch to use the current time zone based on the user’s settings.
Discussion
Use this method to configure the time zone to one that is different from the user’s current time zone. For example, a world clock app might use this method to configure the time display information.