NtpTimestamp.Subtraction Operator
Namespace: Rebex.Net
Assembly: Rebex.Time.dll (version 7.0.9083)
Subtraction(NtpTimestamp, NtpTimestampDifference)
Subtracts a time difference from a timestamp.
Declaration
public static NtpTimestamp operator -(NtpTimestamp a, NtpTimestampDifference b)
Parameters
Type | Name | Description |
---|---|---|
NtpTimestamp | a | An NtpTimestamp. |
NtpTimestampDifference | b |
Returns
Type | Description |
---|---|
NtpTimestamp | A timestamp minus a time difference. |
Subtraction(NtpTimestamp, NtpTimestamp)
Subtracts a timestamp from a timestamp, calculating the time difference between the timestamps.
Declaration
public static NtpTimestampDifference operator -(NtpTimestamp a, NtpTimestamp b)
Parameters
Type | Name | Description |
---|---|---|
NtpTimestamp | a | A timestamp. |
NtpTimestamp | b | A timestamp. |
Returns
Type | Description |
---|---|
NtpTimestampDifference | A time difference (positive or negative). |