DateTimeWithZone.Add Method (YearMonthDuration, DateTimeWithZone)DateTimeWithZone.Add Method (YearMonthDuration, DateTimeWithZone)DateTimeWithZone::Add Method (YearMonthDuration, DateTimeWithZone)
Adds a YearMonthDurationYearMonthDurationYearMonthDuration to a DateTimeWithZoneDateTimeWithZoneDateTimeWithZone.
Syntax
Public Shared Function Add( _ duration As YearMonthDuration, _ dateTime As DateTimeWithZone _ ) As DateTimeWithZone
public static DateTimeWithZone Add( YearMonthDuration duration, DateTimeWithZone dateTime )
public: static DateTimeWithZone Add( 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 result of duration added to dateTime.
Exceptions
Exception | Condition |
OverflowExceptionOverflowExceptionOverflowException | An overflow error occurred. |