Daytime.SynchronizeSystemClock Method
Namespace: Rebex.Net
Assembly: Rebex.Time.dll (version 7.0.9448)
SynchronizeSystemClock(String, Int32, Boolean)
Synchronize the local time with the DAYTIME server.
Declaration
public static void SynchronizeSystemClock(string serverName, int serverPort, bool useTcp)
Parameters
| Type | Name | Description |
|---|---|---|
| String | serverName | The time server hostname. |
| Int32 | serverPort | The time server port. |
| Boolean | useTcp | True if communicate via TCP; false to communicate via UDP. |
SynchronizeSystemClock(String, Int32)
Synchronize the local time with the DAYTIME server using TCP protocol.
Declaration
public static void SynchronizeSystemClock(string serverName, int serverPort)
Parameters
| Type | Name | Description |
|---|---|---|
| String | serverName | The time server hostname. |
| Int32 | serverPort | The time server port. |
SynchronizeSystemClock(String)
Synchronize the local time with the DAYTIME server using TCP protocol.
Declaration
public static void SynchronizeSystemClock(string serverName)
Parameters
| Type | Name | Description |
|---|---|---|
| String | serverName | The time server hostname. |
SynchronizeSystemClock()
Synchronize the local time with the server. Inherited from TimeBase.
Declaration
public void SynchronizeSystemClock()