Noda Time
Subtraction Operator
NamespacesNodaTimeZonedDateTimeSubtraction(ZonedDateTime, Duration)

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

Returns a new ZonedDateTime with the duration subtracted. Note that due to daylight saving time changes this may not change the local time by the same amount.
Declaration Syntax
C#Visual BasicVisual C++
public static ZonedDateTime operator -(
	ZonedDateTime zonedDateTime,
	Duration duration
)
Public Shared Operator - ( _
	zonedDateTime As ZonedDateTime, _
	duration As Duration _
) As ZonedDateTime
public:
static ZonedDateTime operator -(
	ZonedDateTime zonedDateTime, 
	Duration duration
)
Parameters
zonedDateTime (ZonedDateTime)
The value to subtract the duration from.
duration (Duration)
The duration to subtract.
Return Value
A new value with the time "rewound" by the given duration, in the same calendar system and time zone.
Remarks
The returned value retains the calendar system and time zone of the ZonedDateTime.

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