NtpTimestamp Constructor
Namespace: Rebex.Net
Assembly: Rebex.Time.dll (version 7.0.9083)
NtpTimestamp(DateTime)
Constructs the timestamp from .NET time.
Declaration
public NtpTimestamp(DateTime dateTime)
Parameters
Type | Name | Description |
---|---|---|
DateTime | dateTime | The local time. Allowed range is 1968-01-20 3:14:08 to 2104-02-26 9:42:23. |
NtpTimestamp(Byte[], Int32)
Constructs the timestamp from the raw NTP format.
Declaration
public NtpTimestamp(byte[] data, int index)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | data | The buffer containing the 8-byte timestamp. |
Int32 | index | The starting position of the timestamp in the buffer. |