Uses of Class
java.util.Calendar

Packages that use 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
    Date CallableStatement.getDate​(int parameterIndex, Calendar cal)
    Gets the value of the specified JDBC DATE parameter as a java.sql.Date, using the specified Calendar to construct the date.
    Date CallableStatement.getDate​(String parameterName, Calendar cal)
    Gets the value of the specified JDBC DATE parameter as a java.sql.Date, using the specified Calendar to construct the date.
    Date ResultSet.getDate​(int columnIndex, Calendar cal)
    Gets the value of a column specified by column index as a java.sql.Date.
    Date ResultSet.getDate​(String columnName, Calendar cal)
    Gets the value of a column specified by column name, as a java.sql.Date object.
    Time CallableStatement.getTime​(int parameterIndex, Calendar cal)
    Gets the value of a specified JDBC TIME parameter as a java.sql.Time, using the supplied Calendar to construct the time.
    Time CallableStatement.getTime​(String parameterName, Calendar cal)
    Gets the value of a specified JDBC TIME parameter as a java.sql.Time, using the supplied Calendar to construct the time.
    Time ResultSet.getTime​(int columnIndex, Calendar cal)
    Gets the value of a column specified by column index as a java.sql.Time value.
    Time ResultSet.getTime​(String columnName, Calendar cal)
    Gets the value of a column specified by column index, as a java.sql.Time value.
    Timestamp CallableStatement.getTimestamp​(int parameterIndex, Calendar cal)
    Returns the indexed parameter's TIMESTAMP value as a java.sql.Timestamp.
    Timestamp CallableStatement.getTimestamp​(String parameterName, Calendar cal)
    Returns the indexed parameter's TIMESTAMP value as a java.sql.Timestamp.
    Timestamp ResultSet.getTimestamp​(int columnIndex, Calendar cal)
    Gets the value of a column specified by column index, as a java.sql.Timestamp value.
    Timestamp ResultSet.getTimestamp​(String columnName, Calendar cal)
    Gets the value of a column specified by column name, as a java.sql.Timestamp value.
    void CallableStatement.setDate​(String parameterName, Date theDate, Calendar cal)
    Sets the value of a specified parameter to a supplied java.sql.Date value, using a supplied calendar to map the date.
    void PreparedStatement.setDate​(int parameterIndex, Date theDate, Calendar cal)
    Sets the value of a specified parameter to a supplied java.sql.Date value, using a supplied Calendar to map the Date.
    void CallableStatement.setTime​(String parameterName, Time theTime, Calendar cal)
    Sets the value of the parameter named parameterName to the value of the supplied java.sql.Time using the supplied calendar.
    void PreparedStatement.setTime​(int parameterIndex, Time theTime, Calendar cal)
    Sets the value of a specified parameter to a supplied java.sql.Time value, using a supplied Calendar.
    void CallableStatement.setTimestamp​(String parameterName, Timestamp theTimestamp, Calendar cal)
    Sets the value of a specified parameter to a supplied java.sql.Timestamp value, using the supplied calendar.
    void PreparedStatement.setTimestamp​(int parameterIndex, Timestamp theTimestamp, Calendar cal)
    Sets the value of a specified parameter to a supplied java.sql.Timestamp value, using the supplied Calendar.
  • Uses of Calendar in java.text

    Fields in java.text declared as Calendar
    Modifier and Type Field Description
    protected Calendar DateFormat.calendar
    The calendar that this DateFormat uses to format a number representing a date.
    Methods in java.text that return Calendar
    Modifier and Type Method Description
    Calendar DateFormat.getCalendar()
    Returns the calendar used by this DateFormat.
    Methods in java.text with parameters of type Calendar
    Modifier and Type Method Description
    void DateFormat.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
    class  GregorianCalendar
    GregorianCalendar is a concrete subclass of Calendar and provides the standard calendar used by most of the world.
    Methods in java.util that return Calendar
    Modifier and Type Method Description
    static Calendar Calendar.getInstance()
    Constructs a new instance of the Calendar subclass appropriate for the default Locale and default TimeZone, set to the current date and time.
    static Calendar Calendar.getInstance​(Locale locale)
    Constructs a new instance of the Calendar subclass appropriate for the given Locale and default TimeZone, set to the current date and time.
    static Calendar Calendar.getInstance​(TimeZone timezone)
    Constructs a new instance of the Calendar subclass appropriate for the default Locale and given TimeZone, set to the current date and time.
    static Calendar Calendar.getInstance​(TimeZone timezone, Locale locale)
    Constructs a new instance of the Calendar subclass appropriate for the given Locale and given TimeZone, set to the current date and time.
    Methods in java.util with parameters of type Calendar
    Modifier and Type Method Description
    int Calendar.compareTo​(Calendar anotherCalendar)
    Compares the time represented by this Calendar to that represented by the given Calendar.
  • Uses of Calendar in javax.sql

    Methods in javax.sql with parameters of type Calendar
    Modifier and Type Method Description
    void RowSet.setDate​(int parameterIndex, 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.
    void RowSet.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.
    void RowSet.setTime​(int parameterIndex, Time theTime, Calendar theCalendar)
    Sets the value of the specified parameter in the RowSet command to a supplied java.sql.Time, converting it to an SQL TIME value using a supplied Calendar.
    void RowSet.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.
    void RowSet.setTimestamp​(int parameterIndex, Timestamp theTimestamp, Calendar theCalendar)
    Sets the value of the specified parameter in the RowSet command to a supplied java.sql.Timestamp, converting it to an SQL TIMESTAMP value using a supplied Calendar.
    void RowSet.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 void Duration.addTo​(Calendar calendar)
    Adds this duration to a Calendar object.
    long Duration.getTimeInMillis​(Calendar startInstant)
    Returns the length of the duration in milliseconds.
    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.
  • Uses of Calendar in org.conscrypt

    Methods in org.conscrypt with parameters of type Calendar
    Modifier and Type Method Description
    static void NativeCrypto.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
    Date JDBCPreparedStatement.getDate​(int parameterIndex, Calendar cal)  
    Date JDBCPreparedStatement.getDate​(String parameterName, Calendar cal)  
    Date JDBCResultSet.getDate​(int columnIndex, Calendar cal)  
    Date JDBCResultSet.getDate​(String columnName, Calendar cal)  
    Time JDBCPreparedStatement.getTime​(int parameterIndex, Calendar cal)  
    Time JDBCPreparedStatement.getTime​(String parameterName, Calendar cal)  
    Time JDBCResultSet.getTime​(int columnIndex, Calendar cal)  
    Time JDBCResultSet.getTime​(String columnName, Calendar cal)  
    Timestamp JDBCPreparedStatement.getTimestamp​(int parameterIndex, Calendar cal)  
    Timestamp JDBCPreparedStatement.getTimestamp​(String parameterName, Calendar cal)  
    Timestamp JDBCResultSet.getTimestamp​(int columnIndex, Calendar cal)  
    Timestamp JDBCResultSet.getTimestamp​(String columnName, Calendar cal)  
    void JDBCPreparedStatement.setDate​(int parameterIndex, Date x, Calendar cal)  
    void JDBCPreparedStatement.setDate​(String parameterName, Date val, Calendar cal)  
    void JDBCPreparedStatement.setTime​(int parameterIndex, Time x, Calendar cal)  
    void JDBCPreparedStatement.setTime​(String parameterName, Time val, Calendar cal)  
    void JDBCPreparedStatement.setTimestamp​(int parameterIndex, Timestamp x, Calendar cal)  
    void JDBCPreparedStatement.setTimestamp​(String parameterName, Timestamp val, Calendar cal)