TimeWithZone.Subtract Method (TimeWithZone, TimeWithZone, TimeZone)TimeWithZone.Subtract Method (TimeWithZone, TimeWithZone, TimeZone)TimeWithZone::Subtract Method (TimeWithZone, TimeWithZone, TimeZone)
Syntax
Public Shared Function Subtract( _ time1 As TimeWithZone, _ time2 As TimeWithZone, _ implicitTimeZone As TimeZone _ ) As DayTimeDuration
public static DayTimeDuration Subtract( TimeWithZone time1, TimeWithZone time2, TimeZone implicitTimeZone )
public: static DayTimeDuration Subtract( TimeWithZone time1, TimeWithZone time2, TimeZone implicitTimeZone )
Parameters
- time1
Type: XmlPrime.TimeWithZoneXmlPrime.TimeWithZoneXmlPrime::TimeWithZone
The TimeWithZoneTimeWithZoneTimeWithZone to subtract from.
- time2
Type: XmlPrime.TimeWithZoneXmlPrime.TimeWithZoneXmlPrime::TimeWithZone
The TimeWithZoneTimeWithZoneTimeWithZone to subtract.
- implicitTimeZone
Type: XmlPrime.TimeZoneXmlPrime.TimeZoneXmlPrime::TimeZone
The time zone to use if either time does not have a time zone.
Return Value
Type: XmlPrime.DayTimeDurationXmlPrime.DayTimeDurationXmlPrime::DayTimeDuration
A TimeWithZoneTimeWithZoneTimeWithZone that is the result of subtracting of time2 from time1.