DateTimeWithZone.Add Method (DayTimeDuration, DateTimeWithZone)DateTimeWithZone.Add Method (DayTimeDuration, DateTimeWithZone)DateTimeWithZone::Add Method (DayTimeDuration, DateTimeWithZone)
Adds a DayTimeDurationDayTimeDurationDayTimeDuration to a DateTimeWithZoneDateTimeWithZoneDateTimeWithZone.
Syntax
Public Shared Function Add( _ duration As DayTimeDuration, _ dateTime As DateTimeWithZone _ ) As DateTimeWithZone
public static DateTimeWithZone Add( DayTimeDuration duration, DateTimeWithZone dateTime )
public: static DateTimeWithZone Add( DayTimeDuration duration, DateTimeWithZone dateTime )
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. |