Uses of Class
java.util.Calendar
| Package | Description |
|---|---|
| java.sql | |
| java.text | |
| java.util | |
| javax.sql | |
| javax.xml.datatype | |
| org.conscrypt | |
| SQLite.JDBC2z |
-
Uses of Calendar in java.sql
Methods in java.sql with parameters of type Calendar Modifier and Type Method Description DateCallableStatement. getDate(int parameterIndex, Calendar cal)Gets the value of the specified JDBCDATEparameter as ajava.sql.Date, using the specifiedCalendarto construct the date.DateCallableStatement. getDate(String parameterName, Calendar cal)Gets the value of the specified JDBCDATEparameter as ajava.sql.Date, using the specifiedCalendarto construct the date.DateResultSet. getDate(int columnIndex, Calendar cal)Gets the value of a column specified by column index as ajava.sql.Date.DateResultSet. getDate(String columnName, Calendar cal)Gets the value of a column specified by column name, as ajava.sql.Dateobject.TimeCallableStatement. getTime(int parameterIndex, Calendar cal)Gets the value of a specified JDBCTIMEparameter as ajava.sql.Time, using the suppliedCalendarto construct the time.TimeCallableStatement. getTime(String parameterName, Calendar cal)Gets the value of a specified JDBCTIMEparameter as ajava.sql.Time, using the suppliedCalendarto construct the time.TimeResultSet. getTime(int columnIndex, Calendar cal)Gets the value of a column specified by column index as ajava.sql.Timevalue.TimeResultSet. getTime(String columnName, Calendar cal)Gets the value of a column specified by column index, as ajava.sql.Timevalue.TimestampCallableStatement. getTimestamp(int parameterIndex, Calendar cal)Returns the indexed parameter'sTIMESTAMPvalue as ajava.sql.Timestamp.TimestampCallableStatement. getTimestamp(String parameterName, Calendar cal)Returns the indexed parameter'sTIMESTAMPvalue as ajava.sql.Timestamp.TimestampResultSet. getTimestamp(int columnIndex, Calendar cal)Gets the value of a column specified by column index, as ajava.sql.Timestampvalue.TimestampResultSet. getTimestamp(String columnName, Calendar cal)Gets the value of a column specified by column name, as ajava.sql.Timestampvalue.voidCallableStatement. setDate(String parameterName, Date theDate, Calendar cal)Sets the value of a specified parameter to a suppliedjava.sql.Datevalue, using a supplied calendar to map the date.voidPreparedStatement. setDate(int parameterIndex, Date theDate, Calendar cal)Sets the value of a specified parameter to a suppliedjava.sql.Datevalue, using a suppliedCalendarto map the Date.voidCallableStatement. setTime(String parameterName, Time theTime, Calendar cal)Sets the value of the parameter namedparameterNameto the value of the suppliedjava.sql.Timeusing the supplied calendar.voidPreparedStatement. setTime(int parameterIndex, Time theTime, Calendar cal)Sets the value of a specified parameter to a suppliedjava.sql.Timevalue, using a suppliedCalendar.voidCallableStatement. setTimestamp(String parameterName, Timestamp theTimestamp, Calendar cal)Sets the value of a specified parameter to a suppliedjava.sql.Timestampvalue, using the supplied calendar.voidPreparedStatement. setTimestamp(int parameterIndex, Timestamp theTimestamp, Calendar cal)Sets the value of a specified parameter to a suppliedjava.sql.Timestampvalue, using the suppliedCalendar. -
Uses of Calendar in java.text
Fields in java.text declared as Calendar Modifier and Type Field Description protected CalendarDateFormat. calendarThe calendar that thisDateFormatuses to format a number representing a date.Methods in java.text that return Calendar Modifier and Type Method Description CalendarDateFormat. getCalendar()Returns the calendar used by thisDateFormat.Methods in java.text with parameters of type Calendar Modifier and Type Method Description voidDateFormat. setCalendar(Calendar cal)Sets the calendar used by this date format. -
Uses of Calendar in java.util
Subclasses of Calendar in java.util Modifier and Type Class Description classGregorianCalendarGregorianCalendaris a concrete subclass ofCalendarand provides the standard calendar used by most of the world.Methods in java.util that return Calendar Modifier and Type Method Description static CalendarCalendar. getInstance()Constructs a new instance of theCalendarsubclass appropriate for the defaultLocaleand defaultTimeZone, set to the current date and time.static CalendarCalendar. getInstance(Locale locale)Constructs a new instance of theCalendarsubclass appropriate for the givenLocaleand defaultTimeZone, set to the current date and time.static CalendarCalendar. getInstance(TimeZone timezone)Constructs a new instance of theCalendarsubclass appropriate for the defaultLocaleand givenTimeZone, set to the current date and time.static CalendarCalendar. getInstance(TimeZone timezone, Locale locale)Constructs a new instance of theCalendarsubclass appropriate for the givenLocaleand givenTimeZone, set to the current date and time. -
Uses of Calendar in javax.sql
Methods in javax.sql with parameters of type Calendar Modifier and Type Method Description voidRowSet. setDate(int parameterIndex, Date theDate, Calendar theCalendar)Sets the value of the specified parameter in theRowSetcommand with the value of a suppliedjava.sql.Date, where the conversion of the date to an SQLDATEvalue is calculated using a suppliedCalendar.voidRowSet. setDate(String parameterName, Date theDate, Calendar theCalendar)Sets the value of the specified parameter in the RowSet command with the value of a supplied java.sql.Date, where the conversion of the Date to an SQL DATE value is calculated using a supplied Calendar.voidRowSet. setTime(int parameterIndex, Time theTime, Calendar theCalendar)Sets the value of the specified parameter in theRowSetcommand to a suppliedjava.sql.Time, converting it to an SQLTIMEvalue using a suppliedCalendar.voidRowSet. setTime(String parameterName, Time theTime, Calendar theCalendar)Sets the value of the specified parameter in the RowSet command to a supplied java.sql.Time, converting to an SQL TIME value using a supplied Calendar.voidRowSet. setTimestamp(int parameterIndex, Timestamp theTimestamp, Calendar theCalendar)Sets the value of the specified parameter in theRowSetcommand to a suppliedjava.sql.Timestamp, converting it to an SQLTIMESTAMPvalue using a suppliedCalendar.voidRowSet. setTimestamp(String parameterName, Timestamp theTimestamp, Calendar theCalendar)Sets the value of the specified parameter in the RowSet command to a supplied java.sql.Timestamp converting to an SQL TIMESTAMP value using a supplied Calendar. -
Uses of Calendar in javax.xml.datatype
Methods in javax.xml.datatype with parameters of type Calendar Modifier and Type Method Description abstract voidDuration. addTo(Calendar calendar)Adds this duration to aCalendarobject.longDuration. getTimeInMillis(Calendar startInstant)Returns the length of the duration in milliseconds.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. -
Uses of Calendar in org.conscrypt
Methods in org.conscrypt with parameters of type Calendar Modifier and Type Method Description static voidNativeCrypto. ASN1_TIME_to_Calendar(long asn1TimeCtx, Calendar cal) -
Uses of Calendar in SQLite.JDBC2z
Methods in SQLite.JDBC2z with parameters of type Calendar Modifier and Type Method Description DateJDBCPreparedStatement. getDate(int parameterIndex, Calendar cal)DateJDBCPreparedStatement. getDate(String parameterName, Calendar cal)DateJDBCResultSet. getDate(int columnIndex, Calendar cal)DateJDBCResultSet. getDate(String columnName, Calendar cal)TimeJDBCPreparedStatement. getTime(int parameterIndex, Calendar cal)TimeJDBCPreparedStatement. getTime(String parameterName, Calendar cal)TimeJDBCResultSet. getTime(int columnIndex, Calendar cal)TimeJDBCResultSet. getTime(String columnName, Calendar cal)TimestampJDBCPreparedStatement. getTimestamp(int parameterIndex, Calendar cal)TimestampJDBCPreparedStatement. getTimestamp(String parameterName, Calendar cal)TimestampJDBCResultSet. getTimestamp(int columnIndex, Calendar cal)TimestampJDBCResultSet. getTimestamp(String columnName, Calendar cal)voidJDBCPreparedStatement. setDate(int parameterIndex, Date x, Calendar cal)voidJDBCPreparedStatement. setDate(String parameterName, Date val, Calendar cal)voidJDBCPreparedStatement. setTime(int parameterIndex, Time x, Calendar cal)voidJDBCPreparedStatement. setTime(String parameterName, Time val, Calendar cal)voidJDBCPreparedStatement. setTimestamp(int parameterIndex, Timestamp x, Calendar cal)voidJDBCPreparedStatement. setTimestamp(String parameterName, Timestamp val, Calendar cal)