</B><DD>New <code>Duration</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>.</DL>
</DD>
</DL>
<HR>

<A NAME="newXMLGregorianCalendar()"><!-- --></A><H3>
newXMLGregorianCalendar</H3>
<PRE>
public abstract <A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html" title="class in javax.xml.datatype">XMLGregorianCalendar</A> <B>newXMLGrego