## Uses of Class
javax.xml.datatype.XMLGregorianCalendar

Packages that use XMLGregorianCalendar
Package | Description
--- | ---
javax.xml.datatype |

### Uses of XMLGregorianCalendar in javax.xml.datatype

Methods in javax.xml.datatype that return XMLGregorianCalendar
Modifier and Type | Method and Description
--- | ---
`abstract XMLGregorianCalendar` | DatatypeFactory.`newXMLGregorianCalendar()` Create a new instance of an `XMLGregorianCalendar`.
`abstract XMLGregorianCalendar` | DatatypeFactory.`newXMLGregorianCalendar(java.math.BigInteger year, int month, int day, int hour, int minute, int second, java.math.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.
`abstract XMLGregorianCalendar` | DatatypeFactory.`newXMLGregorianCalendar(java.util.GregorianCalendar cal)` Create an `XMLGregorianCalendar` from a `GregorianCalendar`.
`XMLGregorianCalendar` | DatatypeFactory.`newXMLGregorianCalendar(int year, int month, int day, int hour, int minute, int second, int millisecond, int timezone)` Constructor of value spaces that a `java.util.GregorianCalendar` instance would need to convert to an `XMLGregorianCalendar` instance.
`abstract XMLGregorianCalendar` | DatatypeFactory.`newXMLGregorianCalendar(java.lang.String lexicalRepresentation)` Create a new XMLGregorianCalendar by parsing the String as a lexical representation.
`XMLGregorianCalendar` | DatatypeFactory.`newXMLGregorianCalendarDate(int year, int month, int day, int timezone)` Create a Java representation of XML Schema builtin datatype `date` or `g*`.
`XMLGregorianCalendar` | DatatypeFactory.`newXMLGregorianCalendarTime(int hours, int minutes, int seconds, java.math.BigDecimal fractionalSecond, int timezone)` Create a Java instance of XML Schema builtin datatype time.
`XMLGregorianCalendar` | DatatypeFactory.`newXMLGregorianCalendarTime(int hours, int minutes, int seconds, int timezone)` Create a Java instance of XML Schema builtin datatype `time`.
`XMLGregorianCalendar` | DatatypeFactory.`newXMLGregorianCalendarTime(int hours, int minutes, int seconds, int milliseconds, int timezone)` Create a Java instance of XML Schema builtin datatype time.
`abstract XMLGregorianCalendar` | XMLGregorianCalendar.`normalize()` Normalize this instance to UTC.

Methods in javax.xml.datatype with parameters of type XMLGregorianCalendar
Modifier and Type | Method and Description
--- | ---
`abstract int` | XMLGregorianCalendar.`compare(XMLGregorianCalendar xmlGregorianCalendar)` Compare two instances of W3C XML Schema 1.0 date/time datatypes according to partial order relation defined in W3C XML Schema 1.0 Part 2, Section 3.2.7.3, Order relation on dateTime.
`abstract java.util.GregorianCalendar` | XMLGregorianCalendar.`toGregorianCalendar(java.util.TimeZone timezone, java.util.Locale aLocale, XMLGregorianCalendar defaults)` Convert this `XMLGregorianCalendar` along with provided parameters to a `GregorianCalendar` instance.