Share via


TimeZoneSettings Class

Definition

Contains methods and properties for interacting with time zones.

public ref class TimeZoneSettings abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.System.SystemManagementContract, 65536)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class TimeZoneSettings final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.System.SystemManagementContract), 65536)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public static class TimeZoneSettings
Public Class TimeZoneSettings
Inheritance
Object Platform::Object IInspectable TimeZoneSettings
Attributes

Windows requirements

Device family
Windows IoT Extension SDK (introduced in 10.0.10240.0)
API contract
Windows.System.SystemManagementContract (introduced in v1.0)
App capabilities
systemManagement

Remarks

This API requires the use of the IoT systemManagement capability. Users can add the following to their Package.appmanifest: <iot:Capability Name="systemManagement"/>

Version history

Windows version SDK version Value added
1803 17134 AutoUpdateTimeZoneAsync

Properties

CanChangeTimeZone

Gets whether the time zone can be changed.

CurrentTimeZoneDisplayName

Gets the display name of the current time zone.

SupportedTimeZoneDisplayNames

Gets the display names for all supported time zones.

Methods

AutoUpdateTimeZoneAsync(TimeSpan)

Attempts to automatically determine and set the time zone for embedded mode devices.

ChangeTimeZoneByDisplayName(String)

Changes the time zone using the display name.

Applies to