on</code> created using the specified <code>year</code> and <code>month</code>.
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalArgumentException</CODE> - If any values would create an invalid <code>Duration</code>.
<DD><CODE>java.lang.UnsupportedOperationException</CODE> - If implementation cannot support requested values.</DL>
</DD>
</DL>
<HR>

<A NAME="newDurationYearMonth(boolean, int, int)"><!-- --></A><H3>
newDurationYearMonth</H3>
<PRE>
public <A HREF="../../../javax/xml/datatype/Duration.html"