TimeWithZone.Subtract Method (TimeWithZone, DayTimeDuration)TimeWithZone.Subtract Method (TimeWithZone, DayTimeDuration)TimeWithZone::Subtract Method (TimeWithZone, DayTimeDuration)
Subtracts a DayTimeDurationDayTimeDurationDayTimeDuration from a TimeWithZoneTimeWithZoneTimeWithZone.
Syntax
Public Shared Function Subtract( _ time As TimeWithZone, _ duration As DayTimeDuration _ ) As TimeWithZone
public static TimeWithZone Subtract( TimeWithZone time, DayTimeDuration duration )
public: static TimeWithZone Subtract( TimeWithZone time, DayTimeDuration duration )
Parameters
- time
Type: XmlPrime.TimeWithZoneXmlPrime.TimeWithZoneXmlPrime::TimeWithZone
The TimeWithZoneTimeWithZoneTimeWithZone to subtract from.
- duration
Type: XmlPrime.DayTimeDurationXmlPrime.DayTimeDurationXmlPrime::DayTimeDuration
The DayTimeDurationDayTimeDurationDayTimeDuration to subtract.
Return Value
Type: XmlPrime.TimeWithZoneXmlPrime.TimeWithZoneXmlPrime::TimeWithZone
A TimeWithZoneTimeWithZoneTimeWithZone that is the result of subtracting of duration from time.