DateTimeWithZone.Addition Operator (DateTimeWithZone, DayTimeDuration)DateTimeWithZone.Addition Operator (DateTimeWithZone, DayTimeDuration)DateTimeWithZone::Addition Operator (DateTimeWithZone, DayTimeDuration)
Adds a DayTimeDurationDayTimeDurationDayTimeDuration to a DateTimeWithZoneDateTimeWithZoneDateTimeWithZone.
Syntax
Public Shared Operator +( _ dateTime As DateTimeWithZone, _ duration As DayTimeDuration _ ) As DateTimeWithZone
public static DateTimeWithZone operator +( DateTimeWithZone dateTime, DayTimeDuration duration )
public: static DateTimeWithZone operator +( DateTimeWithZone dateTime, DayTimeDuration duration )
Parameters
Return Value
Type: XmlPrime.DateTimeWithZoneXmlPrime.DateTimeWithZoneXmlPrime::DateTimeWithZone
A DateTimeWithZoneDateTimeWithZoneDateTimeWithZone that is the sum of dateTime and duration.
Exceptions
Exception | Condition |
OverflowExceptionOverflowExceptionOverflowException | An overflow error occurred. |