DateTimeSettings.SetSystemDateTime(DateTime) DateTimeSettings.SetSystemDateTime(DateTime) DateTimeSettings.SetSystemDateTime(DateTime) DateTimeSettings.SetSystemDateTime(DateTime) DateTimeSettings.SetSystemDateTime(DateTime) Method

Definition

Set the system date and time.

public : static void SetSystemDateTime(DateTime utcDateTime)
static void SetSystemDateTime(DateTime utcDateTime) const;
public static void SetSystemDateTime(DateTimeOffset utcDateTime)
Public Shared Sub SetSystemDateTime(utcDateTime As DateTimeOffset)
Windows.System.DateTimeSettings.setSystemDateTime(utcDateTime);

Parameters

utcDateTime
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.