Uses of Class
java.util.Calendar
Packages that useCalendar
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 ofCalendar injava.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 ofCalendar injava.text
Modifier and TypeFieldDescriptionprotectedCalendarDateFormat.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 ofCalendar injava.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.staticCalendarCalendar.getInstance()Gets a calendar using the default time zone and locale.staticCalendarCalendar.getInstance(Locale aLocale) Gets a calendar using the default time zone and specified locale.staticCalendarCalendar.getInstance(TimeZone zone) Gets a calendar using the specified time zone and default locale.staticCalendarCalendar.getInstance(TimeZone zone,Locale aLocale) Gets a calendar with the specified time zone and locale.Uses ofCalendar injavax.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 ofCalendar injavax.sql.rowset
Methods injavax.sql.rowset with parameters of typeCalendarModifier 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 ofCalendar injavax.xml.datatype
Methods injavax.xml.datatype with parameters of typeCalendarModifier and TypeMethodDescriptionabstract voidAdds this duration to aCalendarobject.longDuration.getTimeInMillis(Calendar startInstant) Returns the length of the duration in milli-seconds.abstractDurationDuration.normalizeWith(Calendar startTimeInstant) Converts the years and months fields into the days field by using a specific time instant as the reference point.