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