R>

<A NAME="newDurationYearMonth(long)"><!-- --></A><H3>
newDurationYearMonth</H3>
<PRE>
public <A HREF="../../../javax/xml/datatype/Duration.html">Duration</A> <B>newDurationYearMonth</B>(long&nbsp;durationInMilliseconds)</PRE>
<DL>
<DD><p>Create a <code>Duration</code> of type <code>xdt:yearMonthDuration</code> using the specified milliseconds as defined in
 <a href="http://www.w3.org/TR/xpath-datamodel#dt-yearMonthDuration">
   XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration</a>.</p>
 
 <p>Th