Click or drag to resize

GlobalPositioningSystemDateSubtraction Operator (GlobalPositioningSystemDate, Duration)

Subtracts a Duration from a date, yielding a new GlobalPositioningSystemDate.

Namespace:  AGI.Foundation.Time
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax
public static GlobalPositioningSystemDate operator -(
	GlobalPositioningSystemDate left,
	Duration right
)

Parameters

left
Type: AGI.Foundation.TimeGlobalPositioningSystemDate
The minuend.
right
Type: AGI.Foundation.TimeDuration
The subtrahend.

Return Value

Type: GlobalPositioningSystemDate
The date that is the result of the subtraction; that is, left minus right. The time standard will be the same as the time standard of the subtrahend.
Remarks
If the Standard of right is not GlobalPositioningSystemTime, the date will be converted to the duration's time standard before performing the subtraction. Then, the resulting date will be converted to GlobalPositioningSystemTime before it is returned.
See Also