Udostępnij za pośrednictwem


DateTimeSettings.SetSystemDateTime(DateTime) Method

Definition

Set the system date and time.

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

Parameters

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

Applies to