public abstract XMLGregorianCalendar newXMLGregorianCalendar (BigInteger year, int month, int day, int hour, int minute, int second, BigDecimal fractionalSecond, int timezone)

Constructor allowing for complete value spaces allowed by W3C XML Schema 1.0 recommendation for xsd:dateTime and related builtin datatypes. Note that year parameter supports arbitrarily large numbers and fractionalSecond has infinite precision.

A null value indicates that field is not set.

Parameters:
year    of XMLGregorianCalendar to be created.
month    of XMLGregorianCalendar to be created.
day    of XMLGregorianCalendar to be created.
hour    of XMLGregorianCalendar to be created.
minute    of XMLGregorianCalendar to be created.
second    of XMLGregorianCalendar to be created.
fractionalSecond    of XMLGregorianCalendar to be created.
timezone    of XMLGregorianCalendar to be created.

Returns:  XMLGregorianCalendar created from specified values.

Exceptions:
IllegalArgumentException    If any individual parameter's value is outside the maximum value constraint for the field as determined by the Date/Time Data Mapping table in XMLGregorianCalendar or if the composite values constitute an invalid XMLGregorianCalendar instance as determined by XMLGregorianCalendar.isValid().