Package | Description |
---|---|
java.util |
Contains the collections framework, legacy collection classes, event model,
date and time facilities, internationalization, and miscellaneous utility
classes (a string tokenizer, a random-number generator, and a bit array).
|
javax.xml.datatype |
XML/Java Type Mappings.
|
Modifier and Type | Method and Description |
---|---|
static GregorianCalendar |
GregorianCalendar.from(ZonedDateTime zdt)
Obtains an instance of
GregorianCalendar with the default locale
from a ZonedDateTime object. |
Modifier and Type | Method and Description |
---|---|
abstract GregorianCalendar |
XMLGregorianCalendar.toGregorianCalendar()
Convert this
XMLGregorianCalendar to a GregorianCalendar . |
abstract GregorianCalendar |
XMLGregorianCalendar.toGregorianCalendar(TimeZone timezone,
Locale aLocale,
XMLGregorianCalendar defaults)
Convert this
XMLGregorianCalendar along with provided parameters
to a GregorianCalendar instance. |
Modifier and Type | Method and Description |
---|---|
abstract XMLGregorianCalendar |
DatatypeFactory.newXMLGregorianCalendar(GregorianCalendar cal)
Create an
XMLGregorianCalendar from a GregorianCalendar . |
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.