NtpTimestamp.Subtraction Operator
Namespace: Rebex.Net
Assembly: Rebex.Time.dll (version 7.0.9147)
Subtraction(NtpTimestamp, NtpTimestampDifference)
Subtracts a time difference from a timestamp.
Declaration
public static NtpTimestamp operator -(NtpTimestamp a, NtpTimestampDifference b)
Parameters
Type | Name | Description |
---|---|---|
Ntp |
a | An Ntp |
Ntp |
b |
Returns
Type | Description |
---|---|
Ntp |
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 |
---|---|---|
Ntp |
a | A timestamp. |
Ntp |
b | A timestamp. |
Returns
Type | Description |
---|---|
Ntp |
A time difference (positive or negative). |