Uses of Class
java.util.Calendar
Package
Description
Provides the API for accessing and processing data stored in a
data source (usually a relational database) using the
Java programming language.
Provides classes and interfaces for handling text, dates, numbers,
and messages in a manner independent of natural languages.
Contains the collections framework, some internationalization support classes,
a service loader, properties, random number generation, string parsing
and scanning classes, base64 encoding and decoding, a bit array, and
several miscellaneous utility classes.
Provides the API for server side data source access and processing from
the Java programming language.
Standard interfaces and base classes for JDBC
RowSet
implementations.
Defines XML/Java Type Mappings.
-
Uses of Calendar in java.sql
Modifier and TypeMethodDescriptionRetrieves the value of the designated JDBCDATE
parameter as ajava.sql.Date
object, using the givenCalendar
object to construct the date.Retrieves the value of a JDBCDATE
parameter as ajava.sql.Date
object, using the givenCalendar
object to construct the date.Retrieves the value of the designated column in the current row of thisResultSet
object as ajava.sql.Date
object in the Java programming language.Retrieves the value of the designated column in the current row of thisResultSet
object as ajava.sql.Date
object in the Java programming language.Retrieves the value of the designated JDBCTIME
parameter as ajava.sql.Time
object, using the givenCalendar
object to construct the time.Retrieves the value of a JDBCTIME
parameter as ajava.sql.Time
object, using the givenCalendar
object to construct the time.Retrieves the value of the designated column in the current row of thisResultSet
object as ajava.sql.Time
object in the Java programming language.Retrieves the value of the designated column in the current row of thisResultSet
object as ajava.sql.Time
object in the Java programming language.CallableStatement.getTimestamp
(int parameterIndex, Calendar cal) Retrieves the value of the designated JDBCTIMESTAMP
parameter as ajava.sql.Timestamp
object, using the givenCalendar
object to construct theTimestamp
object.CallableStatement.getTimestamp
(String parameterName, Calendar cal) Retrieves the value of a JDBCTIMESTAMP
parameter as ajava.sql.Timestamp
object, using the givenCalendar
object to construct theTimestamp
object.ResultSet.getTimestamp
(int columnIndex, Calendar cal) Retrieves the value of the designated column in the current row of thisResultSet
object as ajava.sql.Timestamp
object in the Java programming language.ResultSet.getTimestamp
(String columnLabel, Calendar cal) Retrieves the value of the designated column in the current row of thisResultSet
object as ajava.sql.Timestamp
object in the Java programming language.void
Sets the designated parameter to the givenjava.sql.Date
value, using the givenCalendar
object.void
Sets the designated parameter to the givenjava.sql.Date
value, using the givenCalendar
object.void
Sets the designated parameter to the givenjava.sql.Time
value, using the givenCalendar
object.void
Sets the designated parameter to the givenjava.sql.Time
value, using the givenCalendar
object.void
CallableStatement.setTimestamp
(String parameterName, Timestamp x, Calendar cal) Sets the designated parameter to the givenjava.sql.Timestamp
value, using the givenCalendar
object.void
PreparedStatement.setTimestamp
(int parameterIndex, Timestamp x, Calendar cal) Sets the designated parameter to the givenjava.sql.Timestamp
value, using the givenCalendar
object. -
Uses of Calendar in java.text
Modifier and TypeFieldDescriptionprotected Calendar
DateFormat.calendar
TheCalendar
instance used for calculating the date-time fields and the instant of time.Modifier and TypeMethodDescriptionDateFormat.getCalendar()
Gets the calendar associated with this date/time formatter.Modifier and TypeMethodDescriptionvoid
DateFormat.setCalendar
(Calendar newCalendar) Set the calendar to be used by this date format. -
Uses of Calendar in java.util
Modifier and TypeClassDescriptionclass
GregorianCalendar
is a concrete subclass ofCalendar
and provides the standard calendar system used by most of the world.Modifier and TypeMethodDescriptionCalendar.Builder.build()
Returns aCalendar
built 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. -
Uses of Calendar in javax.sql
Modifier and TypeMethodDescriptionvoid
Sets the designated parameter in thisRowSet
object's command with the givenjava.sql.Date
value.void
Sets the designated parameter to the givenjava.sql.Date
value, using the givenCalendar
object.void
Sets the designated parameter in thisRowSet
object's command with the givenjava.sql.Time
value.void
Sets the designated parameter to the givenjava.sql.Time
value, using the givenCalendar
object.void
RowSet.setTimestamp
(int parameterIndex, Timestamp x, Calendar cal) Sets the designated parameter in thisRowSet
object's command with the givenjava.sql.Timestamp
value.void
RowSet.setTimestamp
(String parameterName, Timestamp x, Calendar cal) Sets the designated parameter to the givenjava.sql.Timestamp
value, using the givenCalendar
object. -
Uses of Calendar in javax.sql.rowset
Modifier and TypeMethodDescriptionvoid
Sets the designated parameter to the givenjava.sql.Date
object.void
Sets the designated parameter to the givenjava.sql.Date
value, using the givenCalendar
object.void
Sets the designated parameter to the givenjava.sql.Time
object.void
Sets the designated parameter to the givenjava.sql.Time
value, using the givenCalendar
object.void
BaseRowSet.setTimestamp
(int parameterIndex, Timestamp x, Calendar cal) Sets the designated parameter to the givenjava.sql.Timestamp
object.void
BaseRowSet.setTimestamp
(String parameterName, Timestamp x, Calendar cal) Sets the designated parameter to the givenjava.sql.Timestamp
value, using the givenCalendar
object. -
Uses of Calendar in javax.xml.datatype
Modifier and TypeMethodDescriptionabstract void
Adds this duration to aCalendar
object.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.