DateTimeSettings DateTimeSettings DateTimeSettings DateTimeSettings Class

Definition

Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Prerelease APIs are identified by a Prerelease label.

[Contains prerelease APIs.]
Sets the system date and time.

public : static class DateTimeSettingspublic static class DateTimeSettingsPublic Static Class DateTimeSettings// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows IoT Extension SDK (introduced v10.0.16257.0)
API contract
Windows.System.SystemManagementContract (introduced v4)

Methods

SetSystemDateTime(DateTime) SetSystemDateTime(DateTime) SetSystemDateTime(DateTime) SetSystemDateTime(DateTime)

Prerelease. Set the system date and time.

public : static void SetSystemDateTime(DateTime utcDateTime)public static void SetSystemDateTime(DateTimeOffset utcDateTime)Public Static Function SetSystemDateTime(utcDateTime As DateTimeOffset) As void// You can use this method in JavaScript.
Parameters
utcDateTime
DateTime DateTimeOffset DateTimeOffset DateTimeOffset

The date and time value (in coordinated universal time (UTC)) to set the system clock to.

Remarks

Coordinated universal time does not observe daylight saving time.