Noda Time
Subtraction Operator
NamespacesNodaTimePeriodSubtraction(Period, Period)

[This is preliminary documentation and is subject to change.]

Subtracts one period from another, by simply subtracting each property value.
Declaration Syntax
C#Visual BasicVisual C++
public static Period operator -(
	Period minuend,
	Period subtrahend
)
Public Shared Operator - ( _
	minuend As Period, _
	subtrahend As Period _
) As Period
public:
static Period^ operator -(
	Period^ minuend, 
	Period^ subtrahend
)
Parameters
minuend (Period)
The period to subtract the second operand from
subtrahend (Period)
The period to subtract the first operand from
Return Value
The result of subtracting all the values in the second operand from the values in the first. The units of the result will be the union of both periods, even if the subtraction caused some properties to become zero (so "2 weeks, 1 days" minus "2 weeks" is "zero weeks, 1 days", not "1 days").

Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)