DateTimeWithZone.Add Method (DateTimeWithZone, DayTimeDuration)DateTimeWithZone.Add Method (DateTimeWithZone, DayTimeDuration)DateTimeWithZone::Add Method (DateTimeWithZone, DayTimeDuration)
Adds a DayTimeDurationDayTimeDurationDayTimeDuration to a DateTimeWithZoneDateTimeWithZoneDateTimeWithZone.
Syntax
Public Shared Function Add( _ dateTime As DateTimeWithZone, _ duration As DayTimeDuration _ ) As DateTimeWithZone
public static DateTimeWithZone Add( DateTimeWithZone dateTime, DayTimeDuration duration )
public: static DateTimeWithZone Add( DateTimeWithZone dateTime, DayTimeDuration duration )
Parameters
Return Value
Type: XmlPrime.DateTimeWithZoneXmlPrime.DateTimeWithZoneXmlPrime::DateTimeWithZone
A DateTimeWithZoneDateTimeWithZoneDateTimeWithZone that is the result of duration added to dateTime.
Exceptions
Exception | Condition |
OverflowExceptionOverflowExceptionOverflowException | An overflow error occurred. |