TimeZoneSettings
TimeZoneSettings
TimeZoneSettings
TimeZoneSettings
Class
Definition
Contains methods and properties for interacting with time zones.
public : static class TimeZoneSettingspublic static class TimeZoneSettingsPublic Static Class TimeZoneSettings// You can use this class in JavaScript.
- Attributes
| Device family |
Windows IoT Extension SDK (introduced v10.0.10240.0)
|
| API contract |
Windows.System.SystemManagementContract (introduced v1)
|
| 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"/>
Properties
CanChangeTimeZone CanChangeTimeZone CanChangeTimeZone CanChangeTimeZone
Gets whether the time zone can be changed.
public : static PlatForm::Boolean CanChangeTimeZone { get; }public static bool CanChangeTimeZone { get; }Public Static ReadOnly Property CanChangeTimeZone As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
True if the time zone can be changed; otherwise, false.
| Device family |
Windows IoT Extension SDK (introduced v10.0.10240.0)
|
| API contract |
Windows.System.SystemManagementContract (introduced v1)
|
| Capabilities |
systemManagement
|
Remarks
This API requires the use of the IoT systemManagement capability, and the inclusion of iot in the IgnorableNamespaces list. Users can add the following to their Package.appmanifest:<iot:Capability Name="systemManagement"/>, and add iot to their existing list of IgnorableNamespaces.
CurrentTimeZoneDisplayName CurrentTimeZoneDisplayName CurrentTimeZoneDisplayName CurrentTimeZoneDisplayName
Gets the display name of the current time zone.
public : static PlatForm::String CurrentTimeZoneDisplayName { get; }public static string CurrentTimeZoneDisplayName { get; }Public Static ReadOnly Property CurrentTimeZoneDisplayName As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The display name of the current time zone.
| Device family |
Windows IoT Extension SDK (introduced v10.0.10240.0)
|
| API contract |
Windows.System.SystemManagementContract (introduced v1)
|
| Capabilities |
systemManagement
|
Remarks
This API requires the use of the IoT systemManagement capability, and the inclusion of iot in the IgnorableNamespaces list. Users can add the following to their Package.appmanifest:<iot:Capability Name="systemManagement"/>, and add iot to their existing list of IgnorableNamespaces.
SupportedTimeZoneDisplayNames SupportedTimeZoneDisplayNames SupportedTimeZoneDisplayNames SupportedTimeZoneDisplayNames
Gets the display names for all supported time zones.
public : static IVectorView<string> SupportedTimeZoneDisplayNames { get; }public static IReadOnlyList<string> SupportedTimeZoneDisplayNames { get; }Public Static ReadOnly Property SupportedTimeZoneDisplayNames As IReadOnlyList<string>// You can use this property in JavaScript.
- Value
- IVectorView<PlatForm::String> IReadOnlyList<string> IReadOnlyList<string> IReadOnlyList<string>
The display names for all supported time zones.
| Device family |
Windows IoT Extension SDK (introduced v10.0.10240.0)
|
| API contract |
Windows.System.SystemManagementContract (introduced v1)
|
| Capabilities |
systemManagement
|
Remarks
This API requires the use of the IoT systemManagement capability, and the inclusion of iot in the IgnorableNamespaces list. Users can add the following to their Package.appmanifest:<iot:Capability Name="systemManagement"/>, and add iot to their existing list of IgnorableNamespaces.
Methods
ChangeTimeZoneByDisplayName(String) ChangeTimeZoneByDisplayName(String) ChangeTimeZoneByDisplayName(String) ChangeTimeZoneByDisplayName(String)
Changes the time zone using the display name.
public : static void ChangeTimeZoneByDisplayName(PlatForm::String timeZoneDisplayName)public static void ChangeTimeZoneByDisplayName(String timeZoneDisplayName)Public Static Function ChangeTimeZoneByDisplayName(timeZoneDisplayName As String) As void// You can use this method in JavaScript.
- timeZoneDisplayName
- PlatForm::String String String String
The display name of the time zone to change to.
| Device family |
Windows IoT Extension SDK (introduced v10.0.10240.0)
|
| API contract |
Windows.System.SystemManagementContract (introduced v1)
|
| Capabilities |
systemManagement
|
Remarks
This API requires the use of the IoT systemManagement capability, and the inclusion of iot in the IgnorableNamespaces list. Users can add the following to their Package.appmanifest:<iot:Capability Name="systemManagement"/>, and add iot to their existing list of IgnorableNamespaces.