Daytime Class
Namespace: Rebex.Net
Assembly: Rebex.Time.dll (version 8.0.9673)
Provides methods for communication with DAYTIME servers (RFC 867).
Syntax
public class Daytime : TimeBase
Inherited Members
Examples
See https://test.rebex.net/ for more info about our free DAYTIME service (for testing).
See https://www.rebex.net/time.net/features/daytime.aspx for more code snippets.
See https://www.rebex.net/time.net/samples.aspx for ready-to-use samples.
// synchronize system clock using (RFC 867) DAYTIME protocol (requires elevated privilege)
Rebex.Net.Daytime.SynchronizeSystemClock("test.rebex.net");
Constructors
| Name | Description |
|---|---|
| Daytime(String) | Creates an instance of Daytime class and binds it to the specified DAYTIME server. |
| Daytime(String, Int32) | Creates an instance of Daytime class and binds it to the specified DAYTIME server. |
Fields
| Name | Description |
|---|---|
| DefaultPort | Default DAYTIME port number (13). |
Properties
| Name | Description |
|---|---|
| Timeout | Gets or sets the length of time in milliseconds before the operation times out (specify -1 or 0 to indicate that the request does not time out). Inherited from TimeBase. |
| UseTcp | Gets or sets a value indicating whether to use the TCP protocol (default is UDP). |
Methods
| Name | Description |
|---|---|
| GetTime() | Sends a request for time to the TIME server passed to the constructor and waits for the answer that contains the time value. Inherited from TimeBase. |
| GetTimeAsync(Object) | Begins asynchronous GetTime operation. Sends a request for time to the TIME server passed to the constructor and waits for the answer that contains the time value. Inherited from TimeBase. |
| Parse(String) | Parses the specified DAYTIME result. |
| SynchronizeSystemClock() | Synchronize the local time with the server. Inherited from TimeBase. |
| SynchronizeSystemClock(String) | Synchronize the local time with the DAYTIME server using TCP protocol. |
| SynchronizeSystemClock(String, Int32) | Synchronize the local time with the DAYTIME server using TCP protocol. |
| SynchronizeSystemClock(String, Int32, Boolean) | Synchronize the local time with the DAYTIME server. |
| SynchronizeSystemClockAsync(Object) | Begins asynchronous SynchronizeSystemClock operation. Synchronize the local time with the server. Inherited from TimeBase. |