 title="class in javax.xml.datatype">Duration</A> <B>newDurationYearMonth</B>(boolean&nbsp;isPositive,
                                     int&nbsp;year,
                                     int&nbsp;month)</PRE>
<DL>
<DD><p>Create a <code>Duration</code> of type <code>xdt:yearMonthDuration</code> using the specified
 <code>year</code> and <code>month</code> as defined in
 <a href="http://www.w3.org/TR/xpath-datamodel#dt-yearMonthyDuration">
   XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration</