The NtpTimestamp type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() ![]() | NtpTimestamp(DateTime) |
Constructs the timestamp from .NET time.
|
![]() ![]() | NtpTimestamp(array<Byte>[]()[][], Int32) |
Constructs the timestamp from the raw NTP format.
|
Methods
Name | Description | |
---|---|---|
![]() ![]() | Add |
Adds the specified time difference to this instance.
|
![]() ![]() | CompareTo |
Compares this instance to a specified object and returns an indication of their relative values.
|
![]() ![]() | Equals |
Indicates whether the specified object is equal to the current object.
(Overrides ValueType..::..Equals(Object).) |
![]() ![]() | Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() ![]() | GetHashCode |
Returns a hash code for this instance.
(Overrides ValueType..::..GetHashCode()()()().) |
![]() ![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() ![]() | Subtract(NtpTimestamp) |
Subtracts the specified timestamp from this instance, calculating the time difference between the two timestamps.
|
![]() ![]() | Subtract(NtpTimestampDifference) |
Subtracts the specified time difference from this instance.
|
![]() ![]() | ToArray |
Accessor for the timestamp in NTP format.
|
![]() ![]() | ToLocalTime |
Accessor for the timestamp in .NET time format.
Converts to local time.
|
![]() ![]() | ToString |
Converts the value of this instance to string representation
(analogically to DateTime.ToString).
(Overrides ValueType..::..ToString()()()().) |
![]() ![]() | ToUniversalTime |
Accessor for the timestamp in .NET time format.
|
![]() ![]() | ToUnixTime |
Accessor for the timestamp in Unix time format.
|
Operators
Name | Description | |
---|---|---|
![]() ![]() ![]() | Addition |
Adds a time difference to a timestamp.
|
![]() ![]() ![]() | Equality |
Compare two instances of NtpTimestamp.
|
![]() ![]() ![]() | GreaterThan |
Indicates whether a specified NtpTimestamp is greater than
another specified NtpTimestamp.
|
![]() ![]() ![]() | GreaterThanOrEqual |
Indicates whether a specified NtpTimestamp is greater than
or equal to another specified NtpTimestamp.
|
![]() ![]() ![]() | Inequality |
Compare two instances of NtpTimestamp.
|
![]() ![]() ![]() | LessThan |
Indicates whether a specified NtpTimestamp is less than
another specified NtpTimestamp.
|
![]() ![]() ![]() | LessThanOrEqual |
Indicates whether a specified NtpTimestamp is less than
or equal to another specified NtpTimestamp.
|
![]() ![]() ![]() | Subtraction(NtpTimestamp, NtpTimestamp) |
Subtracts a timestamp from a timestamp, calculating the time difference between the timestamps.
|
![]() ![]() ![]() | Subtraction(NtpTimestamp, NtpTimestampDifference) |
Subtracts a time difference from a timestamp.
|
Fields
Name | Description | |
---|---|---|
![]() ![]() ![]() | MaxValue |
Represents the largest possible value of NtpTimestamp.
|
![]() ![]() ![]() | MinValue |
Represents the smallest possible value of NtpTimestamp.
|
Properties
Name | Description | |
---|---|---|
![]() ![]() | IsValid |
Minimal validity check according to RFC 1305.
|
![]() ![]() | Microsecond |
The sub-second part of the timestamp, on microsecond scale.
|
![]() ![]() ![]() | Now |
Gets the current system time.
|