Uses of Class
java.util.Calendar
Packages that use 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 JDBCDATEparameter as ajava.sql.Dateobject, using the givenCalendarobject to construct the date.Retrieves the value of a JDBCDATEparameter as ajava.sql.Dateobject, using the givenCalendarobject to construct the date.Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.sql.Dateobject in the Java programming language.Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.sql.Dateobject in the Java programming language.Retrieves the value of the designated JDBCTIMEparameter as ajava.sql.Timeobject, using the givenCalendarobject to construct the time.Retrieves the value of a JDBCTIMEparameter as ajava.sql.Timeobject, using the givenCalendarobject to construct the time.Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.sql.Timeobject in the Java programming language.Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.sql.Timeobject in the Java programming language.CallableStatement.getTimestamp(int parameterIndex, Calendar cal) Retrieves the value of the designated JDBCTIMESTAMPparameter as ajava.sql.Timestampobject, using the givenCalendarobject to construct theTimestampobject.CallableStatement.getTimestamp(String parameterName, Calendar cal) Retrieves the value of a JDBCTIMESTAMPparameter as ajava.sql.Timestampobject, using the givenCalendarobject to construct theTimestampobject.ResultSet.getTimestamp(int columnIndex, Calendar cal) Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.sql.Timestampobject in the Java programming language.ResultSet.getTimestamp(String columnLabel, Calendar cal) Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.sql.Timestampobject in the Java programming language.voidSets the designated parameter to the givenjava.sql.Datevalue, using the givenCalendarobject.voidSets the designated parameter to the givenjava.sql.Datevalue, using the givenCalendarobject.voidSets the designated parameter to the givenjava.sql.Timevalue, using the givenCalendarobject.voidSets the designated parameter to the givenjava.sql.Timevalue, using the givenCalendarobject.voidCallableStatement.setTimestamp(String parameterName, Timestamp x, Calendar cal) Sets the designated parameter to the givenjava.sql.Timestampvalue, using the givenCalendarobject.voidPreparedStatement.setTimestamp(int parameterIndex, Timestamp x, Calendar cal) Sets the designated parameter to the givenjava.sql.Timestampvalue, using the givenCalendarobject. -
Uses of Calendar in java.text
Modifier and TypeFieldDescriptionprotected CalendarDateFormat.calendarTheCalendarinstance 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 TypeMethodDescriptionvoidDateFormat.setCalendar(Calendar newCalendar) Set the calendar to be used by this date format. -
Uses of Calendar in java.util
Modifier and TypeClassDescriptionclassGregorianCalendaris a concrete subclass ofCalendarand provides the standard calendar system used by most of the world.Modifier and TypeMethodDescriptionCalendar.Builder.build()Returns aCalendarbuilt from the parameters set by the setter methods.static CalendarCalendar.getInstance()Gets a calendar using the default time zone and locale.static CalendarCalendar.getInstance(Locale aLocale) Gets a calendar using the default time zone and specified locale.static CalendarCalendar.getInstance(TimeZone zone) Gets a calendar using the specified time zone and default locale.static CalendarCalendar.getInstance(TimeZone zone, Locale aLocale) Gets a calendar with the specified time zone and locale. -
Uses of Calendar in javax.sql
Modifier and TypeMethodDescriptionvoidSets the designated parameter in thisRowSetobject's command with the givenjava.sql.Datevalue.voidSets the designated parameter to the givenjava.sql.Datevalue, using the givenCalendarobject.voidSets the designated parameter in thisRowSetobject's command with the givenjava.sql.Timevalue.voidSets the designated parameter to the givenjava.sql.Timevalue, using the givenCalendarobject.voidRowSet.setTimestamp(int parameterIndex, Timestamp x, Calendar cal) Sets the designated parameter in thisRowSetobject's command with the givenjava.sql.Timestampvalue.voidRowSet.setTimestamp(String parameterName, Timestamp x, Calendar cal) Sets the designated parameter to the givenjava.sql.Timestampvalue, using the givenCalendarobject. -
Uses of Calendar in javax.sql.rowset
Methods in javax.sql.rowset with parameters of type CalendarModifier and TypeMethodDescriptionvoidSets the designated parameter to the givenjava.sql.Dateobject.voidSets the designated parameter to the givenjava.sql.Datevalue, using the givenCalendarobject.voidSets the designated parameter to the givenjava.sql.Timeobject.voidSets the designated parameter to the givenjava.sql.Timevalue, using the givenCalendarobject.voidBaseRowSet.setTimestamp(int parameterIndex, Timestamp x, Calendar cal) Sets the designated parameter to the givenjava.sql.Timestampobject.voidBaseRowSet.setTimestamp(String parameterName, Timestamp x, Calendar cal) Sets the designated parameter to the givenjava.sql.Timestampvalue, using the givenCalendarobject. -
Uses of Calendar in javax.xml.datatype
Methods in javax.xml.datatype with parameters of type CalendarModifier and TypeMethodDescriptionabstract voidAdds this duration to aCalendarobject.longDuration.getTimeInMillis(Calendar startInstant) Returns the length of the duration in milli-seconds.abstract DurationDuration.normalizeWith(Calendar startTimeInstant) Converts the years and months fields into the days field by using a specific time instant as the reference point.