The NtpTimestamp type exposes the following members.

Constructors

  NameDescription
Public methodSupported by the .NET Compact FrameworkNtpTimestamp(DateTime)
Constructs the timestamp from .NET time.
Public methodSupported by the .NET Compact FrameworkNtpTimestamp(array<Byte>[]()[][], Int32)
Constructs the timestamp from the raw NTP format.

Methods

  NameDescription
Public methodSupported by the .NET Compact FrameworkAdd
Adds the specified time difference to this instance.
Public methodSupported by the .NET Compact FrameworkCompareTo
Compares this instance to a specified object and returns an indication of their relative values.
Public methodSupported by the .NET Compact FrameworkEquals
Indicates whether the specified object is equal to the current object.
(Overrides ValueType..::..Equals(Object).)
Protected methodSupported by the .NET Compact FrameworkFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkGetHashCode
Returns a hash code for this instance.
(Overrides ValueType..::..GetHashCode()()()().)
Public methodSupported by the .NET Compact FrameworkGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodSupported by the .NET Compact FrameworkMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkSubtract(NtpTimestamp)
Subtracts the specified timestamp from this instance, calculating the time difference between the two timestamps.
Public methodSupported by the .NET Compact FrameworkSubtract(NtpTimestampDifference)
Subtracts the specified time difference from this instance.
Public methodSupported by the .NET Compact FrameworkToArray
Accessor for the timestamp in NTP format.
Public methodSupported by the .NET Compact FrameworkToLocalTime
Accessor for the timestamp in .NET time format. Converts to local time.
Public methodSupported by the .NET Compact FrameworkToString
Converts the value of this instance to string representation (analogically to DateTime.ToString).
(Overrides ValueType..::..ToString()()()().)
Public methodSupported by the .NET Compact FrameworkToUniversalTime
Accessor for the timestamp in .NET time format.
Public methodSupported by the .NET Compact FrameworkToUnixTime
Accessor for the timestamp in Unix time format.

Operators

  NameDescription
Public operatorStatic memberSupported by the .NET Compact FrameworkAddition
Adds a time difference to a timestamp.
Public operatorStatic memberSupported by the .NET Compact FrameworkEquality
Compare two instances of NtpTimestamp.
Public operatorStatic memberSupported by the .NET Compact FrameworkGreaterThan
Indicates whether a specified NtpTimestamp is greater than another specified NtpTimestamp.
Public operatorStatic memberSupported by the .NET Compact FrameworkGreaterThanOrEqual
Indicates whether a specified NtpTimestamp is greater than or equal to another specified NtpTimestamp.
Public operatorStatic memberSupported by the .NET Compact FrameworkInequality
Compare two instances of NtpTimestamp.
Public operatorStatic memberSupported by the .NET Compact FrameworkLessThan
Indicates whether a specified NtpTimestamp is less than another specified NtpTimestamp.
Public operatorStatic memberSupported by the .NET Compact FrameworkLessThanOrEqual
Indicates whether a specified NtpTimestamp is less than or equal to another specified NtpTimestamp.
Public operatorStatic memberSupported by the .NET Compact FrameworkSubtraction(NtpTimestamp, NtpTimestamp)
Subtracts a timestamp from a timestamp, calculating the time difference between the timestamps.
Public operatorStatic memberSupported by the .NET Compact FrameworkSubtraction(NtpTimestamp, NtpTimestampDifference)
Subtracts a time difference from a timestamp.

Fields

  NameDescription
Public fieldStatic memberSupported by the .NET Compact FrameworkMaxValue
Represents the largest possible value of NtpTimestamp.
Public fieldStatic memberSupported by the .NET Compact FrameworkMinValue
Represents the smallest possible value of NtpTimestamp.

Properties

  NameDescription
Public propertySupported by the .NET Compact FrameworkIsValid
Minimal validity check according to RFC 1305.
Public propertySupported by the .NET Compact FrameworkMicrosecond
The sub-second part of the timestamp, on microsecond scale.
Public propertyStatic memberSupported by the .NET Compact FrameworkNow
Gets the current system time.

See Also