SocketTools .NET Edition

NetworkTime.SetTime Method

Set the local system clock to the current date and time as returned by the default timeserver.

Overload List

Set the local system clock to the current date and time as returned by the default timeserver.

public bool SetTime();

Set the local system clock to the specified System.DateTime value.

public bool SetTime(DateTime);

Set the local system clock to the specified network time value.

public bool SetTime(long);

Set the local system clock to the current date and time as returned by the specified timeserver.

public bool SetTime(string);

Set the local system clock to the current date and time as returned by the specified timeserver.

public bool SetTime(string,int);

Set the local system clock to the current date and time as returned by the specified timeserver.

public bool SetTime(string,int,int);

See Also

NetworkTime Class | SocketTools Namespace