## Uses of Class
java.util.Calendar

- Packages that use Calendar
  Package | Description
  --- | ---
  java.text |
  java.util |

- - ### Uses of Calendar in java.text

    Fields in java.text declared as Calendar
    Modifier and Type | Field and Description
    --- | ---
    `protected Calendar` | DateFormat.`calendar` The `Calendar` instance used for calculating the date-time fields and the instant of time.

    Methods in java.text that return Calendar
    Modifier and Type | Method and Description
    --- | ---
    `Calendar` | DateFormat.`getCalendar()` Gets the calendar associated with this date/time formatter.

    Methods in java.text with parameters of type Calendar
    Modifier and Type | Method and Description
    --- | ---
    `void` | DateFormat.`setCalendar(Calendar newCalendar)` Set the calendar to be used by this date format.

  - ### Uses of Calendar in java.util

    Methods in java.util that return Calendar
    Modifier and Type | Method and Description
    --- | ---
    `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.

    Methods in java.util with parameters of type Calendar
    Modifier and Type | Method and Description
    --- | ---
    `int` | Calendar.`compareTo(Calendar anotherCalendar)` Compares the time values (millisecond offsets from the Epoch) represented by two `Calendar` objects.

Copyright © 2025 API Design. All Rights Reserved.