| Package | Description | 
|---|---|
| java.sql | Provides the API for accessing and processing data stored in a 
data source (usually a relational database) using the 
JavaTM programming language. | 
| java.text | Provides classes and interfaces for handling text, dates, numbers, and messages
in a manner independent of natural languages. | 
| 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.sql | Provides the API for server side data source access and processing from
the JavaTM programming language. | 
| javax.sql.rowset | Standard interfaces and base classes for JDBC  RowSetimplementations. | 
| javax.xml.bind | 
        Provides a runtime binding framework for client applications including
        unmarshalling, marshalling, and validation capabilities. | 
| javax.xml.datatype | XML/Java Type Mappings. | 
| Modifier and Type | Method and Description | 
|---|---|
| Date | CallableStatement. getDate(int parameterIndex,
       Calendar cal)Retrieves the value of the designated JDBC  DATEparameter as ajava.sql.Dateobject, using
 the givenCalendarobject
 to construct the date. | 
| Date | ResultSet. getDate(int columnIndex,
       Calendar cal)Retrieves the value of the designated column in the current row
 of this  ResultSetobject as ajava.sql.Dateobject
 in the Java programming language. | 
| Date | CallableStatement. getDate(String parameterName,
       Calendar cal)Retrieves the value of a JDBC  DATEparameter as ajava.sql.Dateobject, using
 the givenCalendarobject
 to construct the date. | 
| Date | ResultSet. getDate(String columnLabel,
       Calendar cal)Retrieves the value of the designated column in the current row
 of this  ResultSetobject as ajava.sql.Dateobject
 in the Java programming language. | 
| Time | CallableStatement. getTime(int parameterIndex,
       Calendar cal)Retrieves the value of the designated JDBC  TIMEparameter as ajava.sql.Timeobject, using
 the givenCalendarobject
 to construct the time. | 
| Time | ResultSet. getTime(int columnIndex,
       Calendar cal)Retrieves the value of the designated column in the current row
 of this  ResultSetobject as ajava.sql.Timeobject
 in the Java programming language. | 
| Time | CallableStatement. getTime(String parameterName,
       Calendar cal)Retrieves the value of a JDBC  TIMEparameter as ajava.sql.Timeobject, using
 the givenCalendarobject
 to construct the time. | 
| Time | ResultSet. getTime(String columnLabel,
       Calendar cal)Retrieves the value of the designated column in the current row
 of this  ResultSetobject as ajava.sql.Timeobject
 in the Java programming language. | 
| Timestamp | CallableStatement. getTimestamp(int parameterIndex,
            Calendar cal)Retrieves the value of the designated JDBC  TIMESTAMPparameter as ajava.sql.Timestampobject, using
 the givenCalendarobject to construct
 theTimestampobject. | 
| Timestamp | ResultSet. getTimestamp(int columnIndex,
            Calendar cal)Retrieves the value of the designated column in the current row
 of this  ResultSetobject as ajava.sql.Timestampobject
 in the Java programming language. | 
| Timestamp | CallableStatement. getTimestamp(String parameterName,
            Calendar cal)Retrieves the value of a JDBC  TIMESTAMPparameter as ajava.sql.Timestampobject, using
 the givenCalendarobject to construct
 theTimestampobject. | 
| Timestamp | ResultSet. getTimestamp(String columnLabel,
            Calendar cal)Retrieves the value of the designated column in the current row
 of this  ResultSetobject as ajava.sql.Timestampobject
 in the Java programming language. | 
| void | PreparedStatement. setDate(int parameterIndex,
       Date x,
       Calendar cal)Sets the designated parameter to the given  java.sql.Datevalue,
 using the givenCalendarobject. | 
| void | CallableStatement. setDate(String parameterName,
       Date x,
       Calendar cal)Sets the designated parameter to the given  java.sql.Datevalue,
 using the givenCalendarobject. | 
| void | PreparedStatement. setTime(int parameterIndex,
       Time x,
       Calendar cal)Sets the designated parameter to the given  java.sql.Timevalue,
 using the givenCalendarobject. | 
| void | CallableStatement. setTime(String parameterName,
       Time x,
       Calendar cal)Sets the designated parameter to the given  java.sql.Timevalue,
 using the givenCalendarobject. | 
| void | PreparedStatement. setTimestamp(int parameterIndex,
            Timestamp x,
            Calendar cal)Sets the designated parameter to the given  java.sql.Timestampvalue,
 using the givenCalendarobject. | 
| void | CallableStatement. setTimestamp(String parameterName,
            Timestamp x,
            Calendar cal)Sets the designated parameter to the given  java.sql.Timestampvalue,
 using the givenCalendarobject. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected Calendar | DateFormat. calendarThe  Calendarinstance used for calculating the date-time fields
 and the instant of time. | 
| Modifier and Type | Method and Description | 
|---|---|
| Calendar | DateFormat. getCalendar()Gets the calendar associated with this date/time formatter. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | DateFormat. setCalendar(Calendar newCalendar)Set the calendar to be used by this date format. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | GregorianCalendarGregorianCalendaris a concrete subclass ofCalendarand provides the standard calendar system
 used by most of the world. | 
| Modifier and Type | Method and Description | 
|---|---|
| Calendar | Calendar.Builder. build()Returns a  Calendarbuilt from the parameters set by the
 setter methods. | 
| static Calendar | Calendar. getInstance()Gets a calendar using the default time zone and locale. | 
| static Calendar | Calendar. getInstance(Locale aLocale)Gets a calendar using the default time zone and specified locale. | 
| static Calendar | Calendar. getInstance(TimeZone zone)Gets a calendar using the specified time zone and default locale. | 
| static Calendar | Calendar. getInstance(TimeZone zone,
           Locale aLocale)Gets a calendar with the specified time zone and locale. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | Calendar. compareTo(Calendar anotherCalendar)Compares the time values (millisecond offsets from the Epoch) represented by two
  Calendarobjects. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | RowSet. setDate(int parameterIndex,
       Date x,
       Calendar cal)Sets the designated parameter in this  RowSetobject's command
 with the givenjava.sql.Datevalue. | 
| void | RowSet. setDate(String parameterName,
       Date x,
       Calendar cal)Sets the designated parameter to the given  java.sql.Datevalue,
 using the givenCalendarobject. | 
| void | RowSet. setTime(int parameterIndex,
       Time x,
       Calendar cal)Sets the designated parameter in this  RowSetobject's command
 with the givenjava.sql.Timevalue. | 
| void | RowSet. setTime(String parameterName,
       Time x,
       Calendar cal)Sets the designated parameter to the given  java.sql.Timevalue,
 using the givenCalendarobject. | 
| void | RowSet. setTimestamp(int parameterIndex,
            Timestamp x,
            Calendar cal)Sets the designated parameter in this  RowSetobject's command
 with the givenjava.sql.Timestampvalue. | 
| void | RowSet. setTimestamp(String parameterName,
            Timestamp x,
            Calendar cal)Sets the designated parameter to the given  java.sql.Timestampvalue,
 using the givenCalendarobject. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | BaseRowSet. setDate(int parameterIndex,
       Date x,
       Calendar cal)Sets the designated parameter to the given  java.sql.Dateobject. | 
| void | BaseRowSet. setDate(String parameterName,
       Date x,
       Calendar cal)Sets the designated parameter to the given  java.sql.Datevalue,
 using the givenCalendarobject. | 
| void | BaseRowSet. setTime(int parameterIndex,
       Time x,
       Calendar cal)Sets the designated parameter to the given  java.sql.Timeobject. | 
| void | BaseRowSet. setTime(String parameterName,
       Time x,
       Calendar cal)Sets the designated parameter to the given  java.sql.Timevalue,
 using the givenCalendarobject. | 
| void | BaseRowSet. setTimestamp(int parameterIndex,
            Timestamp x,
            Calendar cal)Sets the designated parameter to the given
  java.sql.Timestampobject. | 
| void | BaseRowSet. setTimestamp(String parameterName,
            Timestamp x,
            Calendar cal)Sets the designated parameter to the given  java.sql.Timestampvalue,
 using the givenCalendarobject. | 
| Modifier and Type | Method and Description | 
|---|---|
| Calendar | DatatypeConverterInterface. parseDate(String lexicalXSDDate)
 Converts the string argument into a Calendar value. | 
| static Calendar | DatatypeConverter. parseDate(String lexicalXSDDate)
 Converts the string argument into a Calendar value. | 
| Calendar | DatatypeConverterInterface. parseDateTime(String lexicalXSDDateTime)
 Converts the string argument into a Calendar value. | 
| static Calendar | DatatypeConverter. parseDateTime(String lexicalXSDDateTime)
 Converts the string argument into a Calendar value. | 
| Calendar | DatatypeConverterInterface. parseTime(String lexicalXSDTime)
 Converts the string argument into a Calendar value. | 
| static Calendar | DatatypeConverter. parseTime(String lexicalXSDTime)
 Converts the string argument into a Calendar value. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | DatatypeConverterInterface. printDate(Calendar val)
 Converts a Calendar value into a string. | 
| static String | DatatypeConverter. printDate(Calendar val)
 Converts a Calendar value into a string. | 
| String | DatatypeConverterInterface. printDateTime(Calendar val)
 Converts a Calendar value into a string. | 
| static String | DatatypeConverter. printDateTime(Calendar val)
 Converts a Calendar value into a string. | 
| String | DatatypeConverterInterface. printTime(Calendar val)
 Converts a Calendar value into a string. | 
| static String | DatatypeConverter. printTime(Calendar val)
 Converts a Calendar value into a string. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract void | Duration. addTo(Calendar calendar)Adds this duration to a  Calendarobject. | 
| long | Duration. getTimeInMillis(Calendar startInstant)Returns the length of the duration in milli-seconds. | 
| abstract Duration | Duration. normalizeWith(Calendar startTimeInstant)Converts the years and months fields into the days field
 by using a specific time instant as the reference point. | 
 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, 2015, Oracle and/or its affiliates.  All rights reserved.