Package | Description |
---|---|
java.sql | |
java.text | |
java.util |
Modifier and Type | Method and Description |
---|---|
Date |
CallableStatement.getDate(int parameterIndex,
Calendar cal) |
Date |
ResultSet.getDate(int columnIndex,
Calendar cal) |
Date |
ResultSet.getDate(String columnName,
Calendar cal) |
Time |
CallableStatement.getTime(int parameterIndex,
Calendar cal) |
Time |
ResultSet.getTime(int columnIndex,
Calendar cal) |
Time |
ResultSet.getTime(String columnName,
Calendar cal) |
Timestamp |
CallableStatement.getTimestamp(int parameterIndex,
Calendar cal) |
Timestamp |
ResultSet.getTimestamp(int columnIndex,
Calendar cal) |
Timestamp |
ResultSet.getTimestamp(String columnName,
Calendar cal) |
void |
PreparedStatement.setDate(int parameterIndex,
Date x,
Calendar cal) |
void |
PreparedStatement.setTime(int parameterIndex,
Time x,
Calendar cal) |
void |
PreparedStatement.setTimestamp(int parameterIndex,
Timestamp x,
Calendar cal) |
Modifier and Type | Field and Description |
---|---|
protected Calendar |
DateFormat.calendar
The calendar that this
DateFormat uses to format a number
representing a date. |
Modifier and Type | Method and Description |
---|---|
Calendar |
DateFormat.getCalendar()
Returns the calendar used by this
DateFormat . |
Modifier and Type | Method and Description |
---|---|
void |
DateFormat.setCalendar(Calendar cal)
Sets the calendar used by this date format.
|
Modifier and Type | Class and Description |
---|---|
class |
GregorianCalendar
GregorianCalendar provides the conversion between Dates and integer calendar
fields, such as the month, year or minute, for the Gregorian calendar.
|
Modifier and Type | Method and Description |
---|---|
static Calendar |
Calendar.getInstance()
Constructs a new instance of the Calendar subclass appropriate for the
default Locale.
|
static Calendar |
Calendar.getInstance(Locale locale)
Constructs a new instance of the Calendar subclass appropriate for the
specified Locale.
|
static Calendar |
Calendar.getInstance(TimeZone timezone)
Constructs a new instance of the Calendar subclass appropriate for the
default Locale, using the specified TimeZone.
|
static Calendar |
Calendar.getInstance(TimeZone timezone,
Locale locale)
Constructs a new instance of the Calendar subclass appropriate for the
specified Locale.
|