# IndianCalendar

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Constants](https://developer.android.com/reference/android/icu/util/IndianCalendar#constants)\|[Inherited Constants](https://developer.android.com/reference/android/icu/util/IndianCalendar#inhconstants)\|[Inherited Fields](https://developer.android.com/reference/android/icu/util/IndianCalendar#inhfields)\|[Ctors](https://developer.android.com/reference/android/icu/util/IndianCalendar#pubctors)\|[Methods](https://developer.android.com/reference/android/icu/util/IndianCalendar#pubmethods)\|[Protected Methods](https://developer.android.com/reference/android/icu/util/IndianCalendar#promethods)\|[Inherited Methods](https://developer.android.com/reference/android/icu/util/IndianCalendar#inhmethods)  

# IndianCalendar

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/icu/util/IndianCalendar "View this page in Kotlin")\|Java

`
public


class
IndianCalendar
`  
`


``

extends `[Calendar](https://developer.android.com/reference/android/icu/util/Calendar)`


``


`

|---|---|---------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) |||
| ↳ | [android.icu.util.Calendar](https://developer.android.com/reference/android/icu/util/Calendar) ||
|   | ↳ | android.icu.util.IndianCalendar |

<br />

*** ** * ** ***

`IndianCalendar`is a subclass of`GregorianCalendar`that numbers years since the birth of the Buddha. This is the civil calendar which is accepted by government of India as Indian National Calendar. The two calendars most widely used in India today are the Vikrama calendar followed in North India and the Shalivahana or Saka calendar which is followed in South India and Maharashtra. A variant of the Shalivahana Calendar was reformed and standardized as the Indian National calendar in 1957.

Some details of Indian National Calendar (to be implemented) : The Months Month Length Start date (Gregorian) ================================================= 1 Chaitra 30/31 March 22\* 2 Vaisakha 31 April 21 3 Jyaistha 31 May 22 4 Asadha 31 June 22 5 Sravana 31 July 23 6 Bhadra 31 August 23 7 Asvina 30 September 23 8 Kartika 30 October 23 9 Agrahayana 30 November 22 10 Pausa 30 December 22 11 Magha 30 January 21 12 Phalguna 30 February 20 In leap years, Chaitra has 31 days and starts on March 21 instead. The leap years of Gregorian calendar and Indian National Calendar are in synchornization. So When its a leap year in Gregorian calendar then Chaitra has 31 days. The Years Years are counted in the Saka Era, which starts its year 0 in 78AD (by gregorian calendar). So for eg. 9th June 2006 by Gregorian Calendar, is same as 19th of Jyaistha in 1928 of Saka era by Indian National Calendar.

The Indian Calendar has only one allowable era:`Saka Era`. If the calendar is not in lenient mode (see`setLenient`), dates before 1/1/1 Saka Era are rejected with an`IllegalArgumentException`.

This class should not be subclassed.

IndianCalendar usually should be instantiated using[Calendar.getInstance(ULocale)](https://developer.android.com/reference/android/icu/util/Calendar#getInstance(android.icu.util.ULocale))passing in a`ULocale`with the tag`"@calendar=Indian"`.

<br />

**See also:**

- [Calendar](https://developer.android.com/reference/android/icu/util/Calendar)
- [GregorianCalendar](https://developer.android.com/reference/android/icu/util/GregorianCalendar)

## Summary

|                                                                           ### Constants                                                                            ||
|-------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | [AGRAHAYANA](https://developer.android.com/reference/android/icu/util/IndianCalendar#AGRAHAYANA) Constant for Agrahayana, the 9th month of the Indian year. |
| `int` | [ASADHA](https://developer.android.com/reference/android/icu/util/IndianCalendar#ASADHA) Constant for Asadha, the 4th month of the Indian year.             |
| `int` | [ASVINA](https://developer.android.com/reference/android/icu/util/IndianCalendar#ASVINA) Constant for Asvina, the 7th month of the Indian year.             |
| `int` | [BHADRA](https://developer.android.com/reference/android/icu/util/IndianCalendar#BHADRA) Constant for Bhadra, the 6th month of the Indian year.             |
| `int` | [CHAITRA](https://developer.android.com/reference/android/icu/util/IndianCalendar#CHAITRA) Constant for Chaitra, the 1st month of the Indian year.          |
| `int` | [IE](https://developer.android.com/reference/android/icu/util/IndianCalendar#IE) Constant for the Indian Era.                                               |
| `int` | [JYAISTHA](https://developer.android.com/reference/android/icu/util/IndianCalendar#JYAISTHA) Constant for Jyaistha, the 3rd month of the Indian year.       |
| `int` | [KARTIKA](https://developer.android.com/reference/android/icu/util/IndianCalendar#KARTIKA) Constant for Kartika, the 8th month of the Indian year.          |
| `int` | [MAGHA](https://developer.android.com/reference/android/icu/util/IndianCalendar#MAGHA) Constant for Magha, the 11th month of the Indian year.               |
| `int` | [PAUSA](https://developer.android.com/reference/android/icu/util/IndianCalendar#PAUSA) Constant for Pausa, the 10th month of the Indian year.               |
| `int` | [PHALGUNA](https://developer.android.com/reference/android/icu/util/IndianCalendar#PHALGUNA) Constant for Phalguna, the 12th month of the Indian year.      |
| `int` | [SRAVANA](https://developer.android.com/reference/android/icu/util/IndianCalendar#SRAVANA) Constant for Sravana, the 5th month of the Indian year.          |
| `int` | [VAISAKHA](https://developer.android.com/reference/android/icu/util/IndianCalendar#VAISAKHA) Constant for Vaisakha, the 2nd month of the Indian year.       |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ### Inherited constants                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From class[android.icu.util.Calendar](https://developer.android.com/reference/android/icu/util/Calendar) |--------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `int`  | [AM](https://developer.android.com/reference/android/icu/util/Calendar#AM) Value of the`AM_PM`field indicating the period of the day from midnight to just before noon.                                                                                                                                                                                                                                                                                                | | `int`  | [AM_PM](https://developer.android.com/reference/android/icu/util/Calendar#AM_PM) Field number for`get`and`set`indicating whether the`HOUR`is before or after noon.                                                                                                                                                                                                                                                                                                     | | `int`  | [APRIL](https://developer.android.com/reference/android/icu/util/Calendar#APRIL) Value of the`MONTH`field indicating the fourth month of the year.                                                                                                                                                                                                                                                                                                                     | | `int`  | [AUGUST](https://developer.android.com/reference/android/icu/util/Calendar#AUGUST) Value of the`MONTH`field indicating the eighth month of the year.                                                                                                                                                                                                                                                                                                                   | | `int`  | [DATE](https://developer.android.com/reference/android/icu/util/Calendar#DATE) Field number for`get`and`set`indicating the day of the month.                                                                                                                                                                                                                                                                                                                           | | `int`  | [DAY_OF_MONTH](https://developer.android.com/reference/android/icu/util/Calendar#DAY_OF_MONTH) Field number for`get`and`set`indicating the day of the month.                                                                                                                                                                                                                                                                                                           | | `int`  | [DAY_OF_WEEK](https://developer.android.com/reference/android/icu/util/Calendar#DAY_OF_WEEK) Field number for`get`and`set`indicating the day of the week.                                                                                                                                                                                                                                                                                                              | | `int`  | [DAY_OF_WEEK_IN_MONTH](https://developer.android.com/reference/android/icu/util/Calendar#DAY_OF_WEEK_IN_MONTH) Field number for`get`and`set`indicating the ordinal number of the day of the week within the current month.                                                                                                                                                                                                                                             | | `int`  | [DAY_OF_YEAR](https://developer.android.com/reference/android/icu/util/Calendar#DAY_OF_YEAR) Field number for`get`and`set`indicating the day number within the current year.                                                                                                                                                                                                                                                                                           | | `int`  | [DECEMBER](https://developer.android.com/reference/android/icu/util/Calendar#DECEMBER) Value of the`MONTH`field indicating the twelfth month of the year.                                                                                                                                                                                                                                                                                                              | | `int`  | [DOW_LOCAL](https://developer.android.com/reference/android/icu/util/Calendar#DOW_LOCAL) **\[icu\]** Field number for`get()`and`set()`indicating the localized day of week.                                                                                                                                                                                                                                                                                            | | `int`  | [DST_OFFSET](https://developer.android.com/reference/android/icu/util/Calendar#DST_OFFSET) Field number for`get`and`set`indicating the daylight savings offset in milliseconds.                                                                                                                                                                                                                                                                                        | | `int`  | [EPOCH_JULIAN_DAY](https://developer.android.com/reference/android/icu/util/Calendar#EPOCH_JULIAN_DAY) The Julian day of the epoch, that is, January 1, 1970 on the Gregorian calendar.                                                                                                                                                                                                                                                                                | | `int`  | [ERA](https://developer.android.com/reference/android/icu/util/Calendar#ERA) Field number for`get`and`set`indicating the era, e.g., AD or BC in the Julian calendar.                                                                                                                                                                                                                                                                                                   | | `int`  | [EXTENDED_YEAR](https://developer.android.com/reference/android/icu/util/Calendar#EXTENDED_YEAR) **\[icu\]** Field number for`get()`and`set()`indicating the extended year.                                                                                                                                                                                                                                                                                            | | `int`  | [FEBRUARY](https://developer.android.com/reference/android/icu/util/Calendar#FEBRUARY) Value of the`MONTH`field indicating the second month of the year.                                                                                                                                                                                                                                                                                                               | | `int`  | [FRIDAY](https://developer.android.com/reference/android/icu/util/Calendar#FRIDAY) Value of the`DAY_OF_WEEK`field indicating Friday.                                                                                                                                                                                                                                                                                                                                   | | `int`  | [GREATEST_MINIMUM](https://developer.android.com/reference/android/icu/util/Calendar#GREATEST_MINIMUM) Limit type for`getLimit()`and`handleGetLimit()`indicating the greatest minimum value that a field can take.                                                                                                                                                                                                                                                     | | `int`  | [HOUR](https://developer.android.com/reference/android/icu/util/Calendar#HOUR) Field number for`get`and`set`indicating the hour of the morning or afternoon.                                                                                                                                                                                                                                                                                                           | | `int`  | [HOUR_OF_DAY](https://developer.android.com/reference/android/icu/util/Calendar#HOUR_OF_DAY) Field number for`get`and`set`indicating the hour of the day.                                                                                                                                                                                                                                                                                                              | | `int`  | [INTERNALLY_SET](https://developer.android.com/reference/android/icu/util/Calendar#INTERNALLY_SET) Value of the time stamp`stamp[]`indicating that a field has been set via computations from the time or from other fields.                                                                                                                                                                                                                                           | | `int`  | [IS_LEAP_MONTH](https://developer.android.com/reference/android/icu/util/Calendar#IS_LEAP_MONTH) **\[icu\]**Field indicating whether or not the current month is a leap month.                                                                                                                                                                                                                                                                                         | | `int`  | [JANUARY](https://developer.android.com/reference/android/icu/util/Calendar#JANUARY) Value of the`MONTH`field indicating the first month of the year.                                                                                                                                                                                                                                                                                                                  | | `int`  | [JAN_1_1_JULIAN_DAY](https://developer.android.com/reference/android/icu/util/Calendar#JAN_1_1_JULIAN_DAY) The Julian day of the Gregorian epoch, that is, January 1, 1 on the Gregorian calendar.                                                                                                                                                                                                                                                                     | | `int`  | [JULIAN_DAY](https://developer.android.com/reference/android/icu/util/Calendar#JULIAN_DAY) **\[icu\]** Field number for`get()`and`set()`indicating the modified Julian day number.                                                                                                                                                                                                                                                                                     | | `int`  | [JULY](https://developer.android.com/reference/android/icu/util/Calendar#JULY) Value of the`MONTH`field indicating the seventh month of the year.                                                                                                                                                                                                                                                                                                                      | | `int`  | [JUNE](https://developer.android.com/reference/android/icu/util/Calendar#JUNE) Value of the`MONTH`field indicating the sixth month of the year.                                                                                                                                                                                                                                                                                                                        | | `int`  | [LEAST_MAXIMUM](https://developer.android.com/reference/android/icu/util/Calendar#LEAST_MAXIMUM) Limit type for`getLimit()`and`handleGetLimit()`indicating the least maximum value that a field can take.                                                                                                                                                                                                                                                              | | `int`  | [MARCH](https://developer.android.com/reference/android/icu/util/Calendar#MARCH) Value of the`MONTH`field indicating the third month of the year.                                                                                                                                                                                                                                                                                                                      | | `int`  | [MAXIMUM](https://developer.android.com/reference/android/icu/util/Calendar#MAXIMUM) Limit type for`getLimit()`and`handleGetLimit()`indicating the maximum value that a field can take (greatest maximum).                                                                                                                                                                                                                                                             | | `int`  | [MAX_FIELD_COUNT](https://developer.android.com/reference/android/icu/util/Calendar#MAX_FIELD_COUNT) *This constant was deprecated in API level 26. ICU 58 The numeric value may change over time, see ICU ticket #12420.*                                                                                                                                                                                                                                             | | `int`  | [MAX_JULIAN](https://developer.android.com/reference/android/icu/util/Calendar#MAX_JULIAN) The maximum supported Julian day.                                                                                                                                                                                                                                                                                                                                           | | `long` | [MAX_MILLIS](https://developer.android.com/reference/android/icu/util/Calendar#MAX_MILLIS) The maximum supported epoch milliseconds.                                                                                                                                                                                                                                                                                                                                   | | `int`  | [MAY](https://developer.android.com/reference/android/icu/util/Calendar#MAY) Value of the`MONTH`field indicating the fifth month of the year.                                                                                                                                                                                                                                                                                                                          | | `int`  | [MILLISECOND](https://developer.android.com/reference/android/icu/util/Calendar#MILLISECOND) Field number for`get`and`set`indicating the millisecond within the second.                                                                                                                                                                                                                                                                                                | | `int`  | [MILLISECONDS_IN_DAY](https://developer.android.com/reference/android/icu/util/Calendar#MILLISECONDS_IN_DAY) **\[icu\]** Field number for`get()`and`set()`indicating the milliseconds in the day.                                                                                                                                                                                                                                                                      | | `int`  | [MINIMUM](https://developer.android.com/reference/android/icu/util/Calendar#MINIMUM) Limit type for`getLimit()`and`handleGetLimit()`indicating the minimum value that a field can take (least minimum).                                                                                                                                                                                                                                                                | | `int`  | [MINIMUM_USER_STAMP](https://developer.android.com/reference/android/icu/util/Calendar#MINIMUM_USER_STAMP) If the time stamp`stamp[]`has a value greater than or equal to`MINIMUM_USER_SET`then it has been set by the user via a call to`set()`.                                                                                                                                                                                                                      | | `int`  | [MINUTE](https://developer.android.com/reference/android/icu/util/Calendar#MINUTE) Field number for`get`and`set`indicating the minute within the hour.                                                                                                                                                                                                                                                                                                                 | | `int`  | [MIN_JULIAN](https://developer.android.com/reference/android/icu/util/Calendar#MIN_JULIAN) The minimum supported Julian day.                                                                                                                                                                                                                                                                                                                                           | | `long` | [MIN_MILLIS](https://developer.android.com/reference/android/icu/util/Calendar#MIN_MILLIS) The minimum supported epoch milliseconds.                                                                                                                                                                                                                                                                                                                                   | | `int`  | [MONDAY](https://developer.android.com/reference/android/icu/util/Calendar#MONDAY) Value of the`DAY_OF_WEEK`field indicating Monday.                                                                                                                                                                                                                                                                                                                                   | | `int`  | [MONTH](https://developer.android.com/reference/android/icu/util/Calendar#MONTH) Field number for`get`and`set`indicating the month.                                                                                                                                                                                                                                                                                                                                    | | `int`  | [NOVEMBER](https://developer.android.com/reference/android/icu/util/Calendar#NOVEMBER) Value of the`MONTH`field indicating the eleventh month of the year.                                                                                                                                                                                                                                                                                                             | | `int`  | [OCTOBER](https://developer.android.com/reference/android/icu/util/Calendar#OCTOBER) Value of the`MONTH`field indicating the tenth month of the year.                                                                                                                                                                                                                                                                                                                  | | `long` | [ONE_DAY](https://developer.android.com/reference/android/icu/util/Calendar#ONE_DAY) The number of milliseconds in one day.                                                                                                                                                                                                                                                                                                                                            | | `int`  | [ONE_HOUR](https://developer.android.com/reference/android/icu/util/Calendar#ONE_HOUR) The number of milliseconds in one hour.                                                                                                                                                                                                                                                                                                                                         | | `int`  | [ONE_MINUTE](https://developer.android.com/reference/android/icu/util/Calendar#ONE_MINUTE) The number of milliseconds in one minute.                                                                                                                                                                                                                                                                                                                                   | | `int`  | [ONE_SECOND](https://developer.android.com/reference/android/icu/util/Calendar#ONE_SECOND) The number of milliseconds in one second.                                                                                                                                                                                                                                                                                                                                   | | `long` | [ONE_WEEK](https://developer.android.com/reference/android/icu/util/Calendar#ONE_WEEK) The number of milliseconds in one week.                                                                                                                                                                                                                                                                                                                                         | | `int`  | [ORDINAL_MONTH](https://developer.android.com/reference/android/icu/util/Calendar#ORDINAL_MONTH) **\[icu\]**Field indicating the month.                                                                                                                                                                                                                                                                                                                                | | `int`  | [PM](https://developer.android.com/reference/android/icu/util/Calendar#PM) Value of the`AM_PM`field indicating the period of the day from noon to just before midnight.                                                                                                                                                                                                                                                                                                | | `int`  | [RESOLVE_REMAP](https://developer.android.com/reference/android/icu/util/Calendar#RESOLVE_REMAP) Value to OR against resolve table field values for remapping.                                                                                                                                                                                                                                                                                                         | | `int`  | [SATURDAY](https://developer.android.com/reference/android/icu/util/Calendar#SATURDAY) Value of the`DAY_OF_WEEK`field indicating Saturday.                                                                                                                                                                                                                                                                                                                             | | `int`  | [SECOND](https://developer.android.com/reference/android/icu/util/Calendar#SECOND) Field number for`get`and`set`indicating the second within the minute.                                                                                                                                                                                                                                                                                                               | | `int`  | [SEPTEMBER](https://developer.android.com/reference/android/icu/util/Calendar#SEPTEMBER) Value of the`MONTH`field indicating the ninth month of the year.                                                                                                                                                                                                                                                                                                              | | `int`  | [SUNDAY](https://developer.android.com/reference/android/icu/util/Calendar#SUNDAY) Value of the`DAY_OF_WEEK`field indicating Sunday.                                                                                                                                                                                                                                                                                                                                   | | `int`  | [THURSDAY](https://developer.android.com/reference/android/icu/util/Calendar#THURSDAY) Value of the`DAY_OF_WEEK`field indicating Thursday.                                                                                                                                                                                                                                                                                                                             | | `int`  | [TUESDAY](https://developer.android.com/reference/android/icu/util/Calendar#TUESDAY) Value of the`DAY_OF_WEEK`field indicating Tuesday.                                                                                                                                                                                                                                                                                                                                | | `int`  | [UNDECIMBER](https://developer.android.com/reference/android/icu/util/Calendar#UNDECIMBER) Value of the`MONTH`field indicating the thirteenth month of the year.                                                                                                                                                                                                                                                                                                       | | `int`  | [UNSET](https://developer.android.com/reference/android/icu/util/Calendar#UNSET) Value of the time stamp`stamp[]`indicating that a field has not been set since the last call to`clear()`.                                                                                                                                                                                                                                                                             | | `int`  | [WALLTIME_FIRST](https://developer.android.com/reference/android/icu/util/Calendar#WALLTIME_FIRST) **\[icu\]** Option used by[setRepeatedWallTimeOption(int)](https://developer.android.com/reference/android/icu/util/Calendar#setRepeatedWallTimeOption(int))and[setSkippedWallTimeOption(int)](https://developer.android.com/reference/android/icu/util/Calendar#setSkippedWallTimeOption(int))specifying an ambiguous wall time to be interpreted as the earliest. | | `int`  | [WALLTIME_LAST](https://developer.android.com/reference/android/icu/util/Calendar#WALLTIME_LAST) **\[icu\]** Option used by[setRepeatedWallTimeOption(int)](https://developer.android.com/reference/android/icu/util/Calendar#setRepeatedWallTimeOption(int))and[setSkippedWallTimeOption(int)](https://developer.android.com/reference/android/icu/util/Calendar#setSkippedWallTimeOption(int))specifying an ambiguous wall time to be interpreted as the latest.     | | `int`  | [WALLTIME_NEXT_VALID](https://developer.android.com/reference/android/icu/util/Calendar#WALLTIME_NEXT_VALID) **\[icu\]** Option used by[setSkippedWallTimeOption(int)](https://developer.android.com/reference/android/icu/util/Calendar#setSkippedWallTimeOption(int))specifying an ambiguous wall time to be interpreted as the next valid wall time.                                                                                                                | | `int`  | [WEDNESDAY](https://developer.android.com/reference/android/icu/util/Calendar#WEDNESDAY) Value of the`DAY_OF_WEEK`field indicating Wednesday.                                                                                                                                                                                                                                                                                                                          | | `int`  | [WEEK_OF_MONTH](https://developer.android.com/reference/android/icu/util/Calendar#WEEK_OF_MONTH) Field number for`get`and`set`indicating the week number within the current month.                                                                                                                                                                                                                                                                                     | | `int`  | [WEEK_OF_YEAR](https://developer.android.com/reference/android/icu/util/Calendar#WEEK_OF_YEAR) Field number for`get`and`set`indicating the week number within the current year.                                                                                                                                                                                                                                                                                        | | `int`  | [YEAR](https://developer.android.com/reference/android/icu/util/Calendar#YEAR) Field number for`get`and`set`indicating the year.                                                                                                                                                                                                                                                                                                                                       | | `int`  | [YEAR_WOY](https://developer.android.com/reference/android/icu/util/Calendar#YEAR_WOY) **\[icu\]** Field number for`get()`and`set()`indicating the extended year corresponding to the[WEEK_OF_YEAR](https://developer.android.com/reference/android/icu/util/Calendar#WEEK_OF_YEAR)field.                                                                                                                                                                              | | `int`  | [ZONE_OFFSET](https://developer.android.com/reference/android/icu/util/Calendar#ZONE_OFFSET) Field number for`get`and`set`indicating the raw offset from GMT in milliseconds.                                                                                                                                                                                                                                                                                          | |

|                                                                                                                                                                                                                                                                                                                                                                       ### Inherited fields                                                                                                                                                                                                                                                                                                                                                                        |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From class[android.icu.util.Calendar](https://developer.android.com/reference/android/icu/util/Calendar) |------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------| | ` protected static final `[Date](https://developer.android.com/reference/java/util/Date) | [MAX_DATE](https://developer.android.com/reference/android/icu/util/Calendar#MAX_DATE) The maximum supported`Date`. | | ` protected static final `[Date](https://developer.android.com/reference/java/util/Date) | [MIN_DATE](https://developer.android.com/reference/android/icu/util/Calendar#MIN_DATE) The minimum supported`Date`. | |

|                                                                                                                                                                                                                 ### Public constructors                                                                                                                                                                                                                  ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[IndianCalendar](https://developer.android.com/reference/android/icu/util/IndianCalendar#IndianCalendar())`() ` Constructs a`IndianCalendar`using the current time in the default time zone with the default`FORMAT`locale.                                                                                                                                                                                                                        |
| ` `[IndianCalendar](https://developer.android.com/reference/android/icu/util/IndianCalendar#IndianCalendar(android.icu.util.TimeZone))`(`[TimeZone](https://developer.android.com/reference/android/icu/util/TimeZone)` zone) ` Constructs a`IndianCalendar`based on the current time in the given time zone with the default`FORMAT`locale.                                                                                                          |
| ` `[IndianCalendar](https://developer.android.com/reference/android/icu/util/IndianCalendar#IndianCalendar(android.icu.util.TimeZone,%20android.icu.util.ULocale))`(`[TimeZone](https://developer.android.com/reference/android/icu/util/TimeZone)` zone, `[ULocale](https://developer.android.com/reference/android/icu/util/ULocale)` locale) ` Constructs a`IndianCalendar`based on the current time in the given time zone with the given locale. |
| ` `[IndianCalendar](https://developer.android.com/reference/android/icu/util/IndianCalendar#IndianCalendar(android.icu.util.TimeZone,%20java.util.Locale))`(`[TimeZone](https://developer.android.com/reference/android/icu/util/TimeZone)` zone, `[Locale](https://developer.android.com/reference/java/util/Locale)` aLocale) ` Constructs a`IndianCalendar`based on the current time in the given time zone with the given locale.                 |
| ` `[IndianCalendar](https://developer.android.com/reference/android/icu/util/IndianCalendar#IndianCalendar(android.icu.util.ULocale))`(`[ULocale](https://developer.android.com/reference/android/icu/util/ULocale)` locale) ` Constructs a`IndianCalendar`based on the current time in the default time zone with the given locale.                                                                                                                  |
| ` `[IndianCalendar](https://developer.android.com/reference/android/icu/util/IndianCalendar#IndianCalendar(int,%20int,%20int))`(int year, int month, int date) ` Constructs a`IndianCalendar`with the given date set in the default time zone with the default`FORMAT`locale.                                                                                                                                                                         |
| ` `[IndianCalendar](https://developer.android.com/reference/android/icu/util/IndianCalendar#IndianCalendar(int,%20int,%20int,%20int,%20int,%20int))`(int year, int month, int date, int hour, int minute, int second) ` Constructs a IndianCalendar with the given date and time set for the default time zone with the default`FORMAT`locale.                                                                                                        |
| ` `[IndianCalendar](https://developer.android.com/reference/android/icu/util/IndianCalendar#IndianCalendar(java.util.Date))`(`[Date](https://developer.android.com/reference/java/util/Date)` date) ` Constructs a`IndianCalendar`with the given date set in the default time zone with the default`FORMAT`locale.                                                                                                                                    |
| ` `[IndianCalendar](https://developer.android.com/reference/android/icu/util/IndianCalendar#IndianCalendar(java.util.Locale))`(`[Locale](https://developer.android.com/reference/java/util/Locale)` aLocale) ` Constructs a`IndianCalendar`based on the current time in the default time zone with the given locale.                                                                                                                                  |

|                                                                                                                   ### Public methods                                                                                                                   ||
|-----------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` `[String](https://developer.android.com/reference/java/lang/String) | ` `[getType](https://developer.android.com/reference/android/icu/util/IndianCalendar#getType())`() ` **\[icu\]**Returns the calendar type name string for this Calendar object. |

|                                                                                                                                              ### Protected methods                                                                                                                                               ||
|---------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` void` | ` `[handleComputeFields](https://developer.android.com/reference/android/icu/util/IndianCalendar#handleComputeFields(int))`(int julianDay) ` Subclasses may override this method to compute several fields specific to each calendar system.                                                            |
| ` int`  | ` `[handleComputeMonthStart](https://developer.android.com/reference/android/icu/util/IndianCalendar#handleComputeMonthStart(int,%20int,%20boolean))`(int year, int month, boolean useMonth) ` Returns the Julian day number of day before the first day of the given month in the given extended year. |
| ` int`  | ` `[handleGetExtendedYear](https://developer.android.com/reference/android/icu/util/IndianCalendar#handleGetExtendedYear())`() ` Returns the extended year defined by the current fields.                                                                                                               |
| ` int`  | ` `[handleGetLimit](https://developer.android.com/reference/android/icu/util/IndianCalendar#handleGetLimit(int,%20int))`(int field, int limitType) ` Subclass API for defining limits of different types.                                                                                               |
| ` int`  | ` `[handleGetMonthLength](https://developer.android.com/reference/android/icu/util/IndianCalendar#handleGetMonthLength(int,%20int))`(int extendedYear, int month) ` Returns the number of days in the given month of the given extended year of this calendar system.                                   |
| ` int`  | ` `[handleGetYearLength](https://developer.android.com/reference/android/icu/util/IndianCalendar#handleGetYearLength(int))`(int extendedYear) ` Returns the number of days in the given extended year of this calendar system.                                                                          |

| ### Inherited methods |
|-----------------------|---|
| From class` `[android.icu.util.Calendar](https://developer.android.com/reference/android/icu/util/Calendar)` ` |-----------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` void`                                                                                                   | ` `[add](https://developer.android.com/reference/android/icu/util/Calendar#add(int,%20int))`(int field, int amount) ` Add a signed amount to a specified field, using this calendar's rules.                                                                                                                                                                                                                                                                                                                                                         | | ` boolean`                                                                                                | ` `[after](https://developer.android.com/reference/android/icu/util/Calendar#after(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` when) ` Compares the time field records.                                                                                                                                                                                                                                                                                                                                 | | ` boolean`                                                                                                | ` `[before](https://developer.android.com/reference/android/icu/util/Calendar#before(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` when) ` Compares the time field records.                                                                                                                                                                                                                                                                                                                               | | ` final void`                                                                                             | ` `[clear](https://developer.android.com/reference/android/icu/util/Calendar#clear())`() ` Clears the values of all the time fields.                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` final void`                                                                                             | ` `[clear](https://developer.android.com/reference/android/icu/util/Calendar#clear(int))`(int field) ` Clears the value in the given time field.                                                                                                                                                                                                                                                                                                                                                                                                     | | ` `[Object](https://developer.android.com/reference/java/lang/Object)                                     | ` `[clone](https://developer.android.com/reference/android/icu/util/Calendar#clone())`() ` Overrides Cloneable                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` int`                                                                                                    | ` `[compareTo](https://developer.android.com/reference/android/icu/util/Calendar#compareTo(android.icu.util.Calendar))`(`[Calendar](https://developer.android.com/reference/android/icu/util/Calendar)` that) ` Compares the times (in millis) represented by two`Calendar`objects.                                                                                                                                                                                                                                                                  | | ` void`                                                                                                   | ` `[complete](https://developer.android.com/reference/android/icu/util/Calendar#complete())`() ` Fills in any unset fields in the time field list.                                                                                                                                                                                                                                                                                                                                                                                                   | | ` void`                                                                                                   | ` `[computeFields](https://developer.android.com/reference/android/icu/util/Calendar#computeFields())`() ` Converts the current millisecond time value`time`to field values in`fields[]`.                                                                                                                                                                                                                                                                                                                                                            | | ` final void`                                                                                             | ` `[computeGregorianFields](https://developer.android.com/reference/android/icu/util/Calendar#computeGregorianFields(int))`(int julianDay) ` Compute the Gregorian calendar year, month, and day of month from the Julian day.                                                                                                                                                                                                                                                                                                                       | | ` int`                                                                                                    | ` `[computeGregorianMonthStart](https://developer.android.com/reference/android/icu/util/Calendar#computeGregorianMonthStart(int,%20int))`(int year, int month) ` Compute the Julian day of a month of the Gregorian calendar.                                                                                                                                                                                                                                                                                                                       | | ` int`                                                                                                    | ` `[computeJulianDay](https://developer.android.com/reference/android/icu/util/Calendar#computeJulianDay())`() ` Compute the Julian day number as specified by this calendar's fields.                                                                                                                                                                                                                                                                                                                                                               | | ` int`                                                                                                    | ` `[computeMillisInDay](https://developer.android.com/reference/android/icu/util/Calendar#computeMillisInDay())`() ` *This method was deprecated in API level 26. ICU 60*                                                                                                                                                                                                                                                                                                                                                                            | | ` void`                                                                                                   | ` `[computeTime](https://developer.android.com/reference/android/icu/util/Calendar#computeTime())`() ` Converts the current field values in`fields[]`to the millisecond time value`time`.                                                                                                                                                                                                                                                                                                                                                            | | ` int`                                                                                                    | ` `[computeZoneOffset](https://developer.android.com/reference/android/icu/util/Calendar#computeZoneOffset(long,%20int))`(long millis, int millisInDay) ` *This method was deprecated in API level 26. ICU 60*                                                                                                                                                                                                                                                                                                                                       | | ` boolean`                                                                                                | ` `[equals](https://developer.android.com/reference/android/icu/util/Calendar#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Compares this calendar to the specified object.                                                                                                                                                                                                                                                                                                                 | | ` int`                                                                                                    | ` `[fieldDifference](https://developer.android.com/reference/android/icu/util/Calendar#fieldDifference(java.util.Date,%20int))`(`[Date](https://developer.android.com/reference/java/util/Date)` when, int field) ` **\[icu\]**Returns the difference between the given time and the time this calendar object is set to.                                                                                                                                                                                                                            | | ` `[String](https://developer.android.com/reference/java/lang/String)                                     | ` `[fieldName](https://developer.android.com/reference/android/icu/util/Calendar#fieldName(int))`(int field) ` Returns a string name for a field, for debugging and exceptions.                                                                                                                                                                                                                                                                                                                                                                      | | ` static final int`                                                                                       | ` `[floorDivide](https://developer.android.com/reference/android/icu/util/Calendar#floorDivide(int,%20int,%20int[]))`(int numerator, int denominator, int[] remainder) ` Divide two integers, returning the floor of the quotient, and the modulus remainder.                                                                                                                                                                                                                                                                                        | | ` static final int`                                                                                       | ` `[floorDivide](https://developer.android.com/reference/android/icu/util/Calendar#floorDivide(int,%20int))`(int numerator, int denominator) ` Divide two integers, returning the floor of the quotient.                                                                                                                                                                                                                                                                                                                                             | | ` static final long`                                                                                      | ` `[floorDivide](https://developer.android.com/reference/android/icu/util/Calendar#floorDivide(long,%20long))`(long numerator, long denominator) ` Divide two long integers, returning the floor of the quotient.                                                                                                                                                                                                                                                                                                                                    | | ` static final int`                                                                                       | ` `[floorDivide](https://developer.android.com/reference/android/icu/util/Calendar#floorDivide(long,%20int,%20int[]))`(long numerator, int denominator, int[] remainder) ` Divide two integers, returning the floor of the quotient, and the modulus remainder.                                                                                                                                                                                                                                                                                      | | ` final int`                                                                                              | ` `[get](https://developer.android.com/reference/android/icu/util/Calendar#get(int))`(int field) ` Returns the value for a given time field.                                                                                                                                                                                                                                                                                                                                                                                                         | | ` int`                                                                                                    | ` `[getActualMaximum](https://developer.android.com/reference/android/icu/util/Calendar#getActualMaximum(int))`(int field) ` Returns the maximum value that this field could have, given the current date.                                                                                                                                                                                                                                                                                                                                           | | ` int`                                                                                                    | ` `[getActualMinimum](https://developer.android.com/reference/android/icu/util/Calendar#getActualMinimum(int))`(int field) ` Returns the minimum value that this field could have, given the current date.                                                                                                                                                                                                                                                                                                                                           | | ` static `[Locale[]](https://developer.android.com/reference/java/util/Locale)                            | ` `[getAvailableLocales](https://developer.android.com/reference/android/icu/util/Calendar#getAvailableLocales())`() ` Returns the list of locales for which Calendars are installed.                                                                                                                                                                                                                                                                                                                                                                | | ` `[DateFormat](https://developer.android.com/reference/android/icu/text/DateFormat)                      | ` `[getDateTimeFormat](https://developer.android.com/reference/android/icu/util/Calendar#getDateTimeFormat(int,%20int,%20android.icu.util.ULocale))`(int dateStyle, int timeStyle, `[ULocale](https://developer.android.com/reference/android/icu/util/ULocale)` loc) ` **\[icu\]** Returns a`DateFormat`appropriate to this calendar.                                                                                                                                                                                                               | | ` `[DateFormat](https://developer.android.com/reference/android/icu/text/DateFormat)                      | ` `[getDateTimeFormat](https://developer.android.com/reference/android/icu/util/Calendar#getDateTimeFormat(int,%20int,%20java.util.Locale))`(int dateStyle, int timeStyle, `[Locale](https://developer.android.com/reference/java/util/Locale)` loc) ` **\[icu\]** Returns a`DateFormat`appropriate to this calendar.                                                                                                                                                                                                                                | | ` `[String](https://developer.android.com/reference/java/lang/String)                                     | ` `[getDisplayName](https://developer.android.com/reference/android/icu/util/Calendar#getDisplayName(android.icu.util.ULocale))`(`[ULocale](https://developer.android.com/reference/android/icu/util/ULocale)` loc) ` Returns the name of this calendar in the language of the given locale.                                                                                                                                                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)                                     | ` `[getDisplayName](https://developer.android.com/reference/android/icu/util/Calendar#getDisplayName(java.util.Locale))`(`[Locale](https://developer.android.com/reference/java/util/Locale)` loc) ` Returns the name of this calendar in the language of the given locale.                                                                                                                                                                                                                                                                          | | ` final int`                                                                                              | ` `[getFieldCount](https://developer.android.com/reference/android/icu/util/Calendar#getFieldCount())`() ` **\[icu\]**Returns the number of fields defined by this calendar.                                                                                                                                                                                                                                                                                                                                                                         | | ` int[][][]`                                                                                              | ` `[getFieldResolutionTable](https://developer.android.com/reference/android/icu/util/Calendar#getFieldResolutionTable())`() ` Returns the field resolution array for this calendar.                                                                                                                                                                                                                                                                                                                                                                 | | ` int`                                                                                                    | ` `[getFirstDayOfWeek](https://developer.android.com/reference/android/icu/util/Calendar#getFirstDayOfWeek())`() ` Returns what the first day of the week is, where 1 =[SUNDAY](https://developer.android.com/reference/android/icu/util/Calendar#SUNDAY)and 7 =[SATURDAY](https://developer.android.com/reference/android/icu/util/Calendar#SATURDAY).                                                                                                                                                                                              | | ` final int`                                                                                              | ` `[getGreatestMinimum](https://developer.android.com/reference/android/icu/util/Calendar#getGreatestMinimum(int))`(int field) ` Returns the highest minimum value for the given field if varies.                                                                                                                                                                                                                                                                                                                                                    | | ` final int`                                                                                              | ` `[getGregorianDayOfMonth](https://developer.android.com/reference/android/icu/util/Calendar#getGregorianDayOfMonth())`() ` Returns the day of month (1-based) on the Gregorian calendar as computed by`computeGregorianFields()`.                                                                                                                                                                                                                                                                                                                  | | ` final int`                                                                                              | ` `[getGregorianDayOfYear](https://developer.android.com/reference/android/icu/util/Calendar#getGregorianDayOfYear())`() ` Returns the day of year (1-based) on the Gregorian calendar as computed by`computeGregorianFields()`.                                                                                                                                                                                                                                                                                                                     | | ` final int`                                                                                              | ` `[getGregorianMonth](https://developer.android.com/reference/android/icu/util/Calendar#getGregorianMonth())`() ` Returns the month (0-based) on the Gregorian calendar as computed by`computeGregorianFields()`.                                                                                                                                                                                                                                                                                                                                   | | ` final int`                                                                                              | ` `[getGregorianYear](https://developer.android.com/reference/android/icu/util/Calendar#getGregorianYear())`() ` Returns the extended year on the Gregorian calendar as computed by`computeGregorianFields()`.                                                                                                                                                                                                                                                                                                                                       | | ` static `[Calendar](https://developer.android.com/reference/android/icu/util/Calendar)                   | ` `[getInstance](https://developer.android.com/reference/android/icu/util/Calendar#getInstance())`() ` Returns a calendar using the default time zone and locale.                                                                                                                                                                                                                                                                                                                                                                                    | | ` static `[Calendar](https://developer.android.com/reference/android/icu/util/Calendar)                   | ` `[getInstance](https://developer.android.com/reference/android/icu/util/Calendar#getInstance(java.util.Locale))`(`[Locale](https://developer.android.com/reference/java/util/Locale)` aLocale) ` Returns a calendar using the default time zone and specified locale.                                                                                                                                                                                                                                                                              | | ` static `[Calendar](https://developer.android.com/reference/android/icu/util/Calendar)                   | ` `[getInstance](https://developer.android.com/reference/android/icu/util/Calendar#getInstance(android.icu.util.TimeZone,%20java.util.Locale))`(`[TimeZone](https://developer.android.com/reference/android/icu/util/TimeZone)` zone, `[Locale](https://developer.android.com/reference/java/util/Locale)` aLocale) ` Returns a calendar with the specified time zone and locale.                                                                                                                                                                    | | ` static `[Calendar](https://developer.android.com/reference/android/icu/util/Calendar)                   | ` `[getInstance](https://developer.android.com/reference/android/icu/util/Calendar#getInstance(android.icu.util.TimeZone,%20android.icu.util.ULocale))`(`[TimeZone](https://developer.android.com/reference/android/icu/util/TimeZone)` zone, `[ULocale](https://developer.android.com/reference/android/icu/util/ULocale)` locale) ` Returns a calendar with the specified time zone and locale.                                                                                                                                                    | | ` static `[Calendar](https://developer.android.com/reference/android/icu/util/Calendar)                   | ` `[getInstance](https://developer.android.com/reference/android/icu/util/Calendar#getInstance(android.icu.util.TimeZone))`(`[TimeZone](https://developer.android.com/reference/android/icu/util/TimeZone)` zone) ` Returns a calendar using the specified time zone and default locale.                                                                                                                                                                                                                                                             | | ` static `[Calendar](https://developer.android.com/reference/android/icu/util/Calendar)                   | ` `[getInstance](https://developer.android.com/reference/android/icu/util/Calendar#getInstance(android.icu.util.ULocale))`(`[ULocale](https://developer.android.com/reference/android/icu/util/ULocale)` locale) ` Returns a calendar using the default time zone and specified locale.                                                                                                                                                                                                                                                              | | ` static final `[String[]](https://developer.android.com/reference/java/lang/String)                      | ` `[getKeywordValuesForLocale](https://developer.android.com/reference/android/icu/util/Calendar#getKeywordValuesForLocale(java.lang.String,%20android.icu.util.ULocale,%20boolean))`(`[String](https://developer.android.com/reference/java/lang/String)` key, `[ULocale](https://developer.android.com/reference/android/icu/util/ULocale)` locale, boolean commonlyUsed) ` **\[icu\]**Given a key and a locale, returns an array of string values in a preferred order that would make a difference.                                              | | ` final int`                                                                                              | ` `[getLeastMaximum](https://developer.android.com/reference/android/icu/util/Calendar#getLeastMaximum(int))`(int field) ` Returns the lowest maximum value for the given field if varies.                                                                                                                                                                                                                                                                                                                                                           | | ` int`                                                                                                    | ` `[getLimit](https://developer.android.com/reference/android/icu/util/Calendar#getLimit(int,%20int))`(int field, int limitType) ` Returns a limit for a field.                                                                                                                                                                                                                                                                                                                                                                                      | | ` final int`                                                                                              | ` `[getMaximum](https://developer.android.com/reference/android/icu/util/Calendar#getMaximum(int))`(int field) ` Returns the maximum value for the given time field.                                                                                                                                                                                                                                                                                                                                                                                 | | ` int`                                                                                                    | ` `[getMinimalDaysInFirstWeek](https://developer.android.com/reference/android/icu/util/Calendar#getMinimalDaysInFirstWeek())`() ` Returns what the minimal days required in the first week of the year are.                                                                                                                                                                                                                                                                                                                                         | | ` final int`                                                                                              | ` `[getMinimum](https://developer.android.com/reference/android/icu/util/Calendar#getMinimum(int))`(int field) ` Returns the minimum value for the given time field.                                                                                                                                                                                                                                                                                                                                                                                 | | ` int`                                                                                                    | ` `[getRepeatedWallTimeOption](https://developer.android.com/reference/android/icu/util/Calendar#getRepeatedWallTimeOption())`() ` **\[icu\]**Gets the behavior for handling wall time repeating multiple times at negative time zone offset transitions.                                                                                                                                                                                                                                                                                            | | ` int`                                                                                                    | ` `[getSkippedWallTimeOption](https://developer.android.com/reference/android/icu/util/Calendar#getSkippedWallTimeOption())`() ` **\[icu\]**Gets the behavior for handling skipped wall time at positive time zone offset transitions.                                                                                                                                                                                                                                                                                                               | | ` final int`                                                                                              | ` `[getStamp](https://developer.android.com/reference/android/icu/util/Calendar#getStamp(int))`(int field) ` Returns the timestamp of a field.                                                                                                                                                                                                                                                                                                                                                                                                       | | ` `[String](https://developer.android.com/reference/java/lang/String)                                     | ` `[getTemporalMonthCode](https://developer.android.com/reference/android/icu/util/Calendar#getTemporalMonthCode())`() ` Gets The Temporal monthCode value corresponding to the month for the date.                                                                                                                                                                                                                                                                                                                                                  | | ` final `[Date](https://developer.android.com/reference/java/util/Date)                                   | ` `[getTime](https://developer.android.com/reference/android/icu/util/Calendar#getTime())`() ` Returns this Calendar's current time.                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` long`                                                                                                   | ` `[getTimeInMillis](https://developer.android.com/reference/android/icu/util/Calendar#getTimeInMillis())`() ` Returns this Calendar's current time as a long.                                                                                                                                                                                                                                                                                                                                                                                       | | ` `[TimeZone](https://developer.android.com/reference/android/icu/util/TimeZone)                          | ` `[getTimeZone](https://developer.android.com/reference/android/icu/util/Calendar#getTimeZone())`() ` Returns the time zone.                                                                                                                                                                                                                                                                                                                                                                                                                        | | ` `[String](https://developer.android.com/reference/java/lang/String)                                     | ` `[getType](https://developer.android.com/reference/android/icu/util/Calendar#getType())`() ` **\[icu\]**Returns the calendar type name string for this Calendar object.                                                                                                                                                                                                                                                                                                                                                                            | | ` `[Calendar.WeekData](https://developer.android.com/reference/android/icu/util/Calendar.WeekData)        | ` `[getWeekData](https://developer.android.com/reference/android/icu/util/Calendar#getWeekData())`() ` **\[icu\]**Return simple, immutable struct-like class for access to the week data in this calendar.                                                                                                                                                                                                                                                                                                                                           | | ` static `[Calendar.WeekData](https://developer.android.com/reference/android/icu/util/Calendar.WeekData) | ` `[getWeekDataForRegion](https://developer.android.com/reference/android/icu/util/Calendar#getWeekDataForRegion(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` region) ` **\[icu\]**Return simple, immutable struct-like class for access to the CLDR week data.                                                                                                                                                                                                                                          | | ` static final int`                                                                                       | ` `[gregorianMonthLength](https://developer.android.com/reference/android/icu/util/Calendar#gregorianMonthLength(int,%20int))`(int y, int m) ` Returns the length of a month of the Gregorian calendar.                                                                                                                                                                                                                                                                                                                                              | | ` static final int`                                                                                       | ` `[gregorianPreviousMonthLength](https://developer.android.com/reference/android/icu/util/Calendar#gregorianPreviousMonthLength(int,%20int))`(int y, int m) ` Returns the length of a previous month of the Gregorian calendar.                                                                                                                                                                                                                                                                                                                     | | ` void`                                                                                                   | ` `[handleComputeFields](https://developer.android.com/reference/android/icu/util/Calendar#handleComputeFields(int))`(int julianDay) ` Subclasses may override this method to compute several fields specific to each calendar system.                                                                                                                                                                                                                                                                                                               | | ` int`                                                                                                    | ` `[handleComputeJulianDay](https://developer.android.com/reference/android/icu/util/Calendar#handleComputeJulianDay(int))`(int bestField) ` Subclasses may override this.                                                                                                                                                                                                                                                                                                                                                                           | | ` abstract int`                                                                                           | ` `[handleComputeMonthStart](https://developer.android.com/reference/android/icu/util/Calendar#handleComputeMonthStart(int,%20int,%20boolean))`(int eyear, int month, boolean useMonth) ` Returns the Julian day number of day before the first day of the given month in the given extended year.                                                                                                                                                                                                                                                   | | ` int[]`                                                                                                  | ` `[handleCreateFields](https://developer.android.com/reference/android/icu/util/Calendar#handleCreateFields())`() ` Subclasses that use additional fields beyond those defined in`Calendar`should override this method to return an`int[]`array of the appropriate length.                                                                                                                                                                                                                                                                          | | ` `[DateFormat](https://developer.android.com/reference/android/icu/text/DateFormat)                      | ` `[handleGetDateFormat](https://developer.android.com/reference/android/icu/util/Calendar#handleGetDateFormat(java.lang.String,%20java.lang.String,%20java.util.Locale))`(`[String](https://developer.android.com/reference/java/lang/String)` pattern, `[String](https://developer.android.com/reference/java/lang/String)` override, `[Locale](https://developer.android.com/reference/java/util/Locale)` locale) ` Creates a`DateFormat`appropriate to this calendar.                                                                            | | ` `[DateFormat](https://developer.android.com/reference/android/icu/text/DateFormat)                      | ` `[handleGetDateFormat](https://developer.android.com/reference/android/icu/util/Calendar#handleGetDateFormat(java.lang.String,%20android.icu.util.ULocale))`(`[String](https://developer.android.com/reference/java/lang/String)` pattern, `[ULocale](https://developer.android.com/reference/android/icu/util/ULocale)` locale) ` Creates a`DateFormat`appropriate to this calendar.                                                                                                                                                              | | ` `[DateFormat](https://developer.android.com/reference/android/icu/text/DateFormat)                      | ` `[handleGetDateFormat](https://developer.android.com/reference/android/icu/util/Calendar#handleGetDateFormat(java.lang.String,%20java.util.Locale))`(`[String](https://developer.android.com/reference/java/lang/String)` pattern, `[Locale](https://developer.android.com/reference/java/util/Locale)` locale) ` Creates a`DateFormat`appropriate to this calendar.                                                                                                                                                                               | | ` abstract int`                                                                                           | ` `[handleGetExtendedYear](https://developer.android.com/reference/android/icu/util/Calendar#handleGetExtendedYear())`() ` Returns the extended year defined by the current fields.                                                                                                                                                                                                                                                                                                                                                                  | | ` abstract int`                                                                                           | ` `[handleGetLimit](https://developer.android.com/reference/android/icu/util/Calendar#handleGetLimit(int,%20int))`(int field, int limitType) ` Subclass API for defining limits of different types.                                                                                                                                                                                                                                                                                                                                                  | | ` int`                                                                                                    | ` `[handleGetMonthLength](https://developer.android.com/reference/android/icu/util/Calendar#handleGetMonthLength(int,%20int))`(int extendedYear, int month) ` Returns the number of days in the given month of the given extended year of this calendar system.                                                                                                                                                                                                                                                                                      | | ` int`                                                                                                    | ` `[handleGetYearLength](https://developer.android.com/reference/android/icu/util/Calendar#handleGetYearLength(int))`(int eyear) ` Returns the number of days in the given extended year of this calendar system.                                                                                                                                                                                                                                                                                                                                    | | ` int`                                                                                                    | ` `[hashCode](https://developer.android.com/reference/android/icu/util/Calendar#hashCode())`() ` Returns a hash code for this calendar.                                                                                                                                                                                                                                                                                                                                                                                                              | | ` boolean`                                                                                                | ` `[inTemporalLeapYear](https://developer.android.com/reference/android/icu/util/Calendar#inTemporalLeapYear())`() ` **\[icu\]**Returns true if the date is in a leap year.                                                                                                                                                                                                                                                                                                                                                                          | | ` final int`                                                                                              | ` `[internalGet](https://developer.android.com/reference/android/icu/util/Calendar#internalGet(int))`(int field) ` Returns the value for a given time field.                                                                                                                                                                                                                                                                                                                                                                                         | | ` final int`                                                                                              | ` `[internalGet](https://developer.android.com/reference/android/icu/util/Calendar#internalGet(int,%20int))`(int field, int defaultValue) ` Returns the value for a given time field, or return the given default value if the field is not set.                                                                                                                                                                                                                                                                                                     | | ` final long`                                                                                             | ` `[internalGetTimeInMillis](https://developer.android.com/reference/android/icu/util/Calendar#internalGetTimeInMillis())`() ` Returns the current milliseconds without recomputing.                                                                                                                                                                                                                                                                                                                                                                 | | ` final void`                                                                                             | ` `[internalSet](https://developer.android.com/reference/android/icu/util/Calendar#internalSet(int,%20int))`(int field, int value) ` Set a field to a value.                                                                                                                                                                                                                                                                                                                                                                                         | | ` boolean`                                                                                                | ` `[isEquivalentTo](https://developer.android.com/reference/android/icu/util/Calendar#isEquivalentTo(android.icu.util.Calendar))`(`[Calendar](https://developer.android.com/reference/android/icu/util/Calendar)` other) ` **\[icu\]**Returns true if the given Calendar object is equivalent to this one.                                                                                                                                                                                                                                           | | ` static final boolean`                                                                                   | ` `[isGregorianLeapYear](https://developer.android.com/reference/android/icu/util/Calendar#isGregorianLeapYear(int))`(int year) ` Determines if the given year is a leap year.                                                                                                                                                                                                                                                                                                                                                                       | | ` boolean`                                                                                                | ` `[isLenient](https://developer.android.com/reference/android/icu/util/Calendar#isLenient())`() ` Tell whether date/time interpretation is to be lenient.                                                                                                                                                                                                                                                                                                                                                                                           | | ` final boolean`                                                                                          | ` `[isSet](https://developer.android.com/reference/android/icu/util/Calendar#isSet(int))`(int field) ` Determines if the given time field has a value set.                                                                                                                                                                                                                                                                                                                                                                                           | | ` boolean`                                                                                                | ` `[isWeekend](https://developer.android.com/reference/android/icu/util/Calendar#isWeekend(java.util.Date))`(`[Date](https://developer.android.com/reference/java/util/Date)` date) ` **\[icu\]**Returns true if the given date and time is in the weekend in this calendar system.                                                                                                                                                                                                                                                                  | | ` boolean`                                                                                                | ` `[isWeekend](https://developer.android.com/reference/android/icu/util/Calendar#isWeekend())`() ` **\[icu\]**Returns true if this Calendar's current date and time is in the weekend in this calendar system.                                                                                                                                                                                                                                                                                                                                       | | ` static final int`                                                                                       | ` `[julianDayToDayOfWeek](https://developer.android.com/reference/android/icu/util/Calendar#julianDayToDayOfWeek(int))`(int julian) ` Returns the day of week, from SUNDAY to SATURDAY, given a Julian day.                                                                                                                                                                                                                                                                                                                                          | | ` static final long`                                                                                      | ` `[julianDayToMillis](https://developer.android.com/reference/android/icu/util/Calendar#julianDayToMillis(int))`(int julian) ` Converts Julian day to time as milliseconds.                                                                                                                                                                                                                                                                                                                                                                         | | ` static final int`                                                                                       | ` `[millisToJulianDay](https://developer.android.com/reference/android/icu/util/Calendar#millisToJulianDay(long))`(long millis) ` Converts time as milliseconds to Julian day.                                                                                                                                                                                                                                                                                                                                                                       | | ` int`                                                                                                    | ` `[newerField](https://developer.android.com/reference/android/icu/util/Calendar#newerField(int,%20int))`(int defaultField, int alternateField) ` Returns the field that is newer, either defaultField, or alternateField.                                                                                                                                                                                                                                                                                                                          | | ` int`                                                                                                    | ` `[newestStamp](https://developer.android.com/reference/android/icu/util/Calendar#newestStamp(int,%20int,%20int))`(int first, int last, int bestStampSoFar) ` Returns the newest stamp of a given range of fields.                                                                                                                                                                                                                                                                                                                                  | | ` void`                                                                                                   | ` `[pinField](https://developer.android.com/reference/android/icu/util/Calendar#pinField(int))`(int field) ` Adjust the specified field so that it is within the allowable range for the date to which this calendar is set.                                                                                                                                                                                                                                                                                                                         | | ` void`                                                                                                   | ` `[prepareGetActual](https://developer.android.com/reference/android/icu/util/Calendar#prepareGetActual(int,%20boolean))`(int field, boolean isMinimum) ` Prepare this calendar for computing the actual minimum or maximum.                                                                                                                                                                                                                                                                                                                        | | ` int`                                                                                                    | ` `[resolveFields](https://developer.android.com/reference/android/icu/util/Calendar#resolveFields(int[][][]))`(int[][][] precedenceTable) ` Given a precedence table, return the newest field combination in the table, or -1 if none is found.                                                                                                                                                                                                                                                                                                     | | ` final void`                                                                                             | ` `[roll](https://developer.android.com/reference/android/icu/util/Calendar#roll(int,%20boolean))`(int field, boolean up) ` Rolls (up/down) a single unit of time on the given field.                                                                                                                                                                                                                                                                                                                                                                | | ` void`                                                                                                   | ` `[roll](https://developer.android.com/reference/android/icu/util/Calendar#roll(int,%20int))`(int field, int amount) ` Rolls (up/down) a specified amount time on the given field.                                                                                                                                                                                                                                                                                                                                                                  | | ` final void`                                                                                             | ` `[set](https://developer.android.com/reference/android/icu/util/Calendar#set(int,%20int,%20int,%20int,%20int,%20int))`(int year, int month, int date, int hour, int minute, int second) ` Sets the values for the fields year, month, date, hour, minute, and second.                                                                                                                                                                                                                                                                              | | ` final void`                                                                                             | ` `[set](https://developer.android.com/reference/android/icu/util/Calendar#set(int,%20int,%20int,%20int,%20int))`(int year, int month, int date, int hour, int minute) ` Sets the values for the fields year, month, date, hour, and minute.                                                                                                                                                                                                                                                                                                         | | ` final void`                                                                                             | ` `[set](https://developer.android.com/reference/android/icu/util/Calendar#set(int,%20int))`(int field, int value) ` Sets the time field with the given value.                                                                                                                                                                                                                                                                                                                                                                                       | | ` final void`                                                                                             | ` `[set](https://developer.android.com/reference/android/icu/util/Calendar#set(int,%20int,%20int))`(int year, int month, int date) ` Sets the values for the fields year, month, and date.                                                                                                                                                                                                                                                                                                                                                           | | ` void`                                                                                                   | ` `[setFirstDayOfWeek](https://developer.android.com/reference/android/icu/util/Calendar#setFirstDayOfWeek(int))`(int value) ` Sets what the first day of the week is, where 1 =[SUNDAY](https://developer.android.com/reference/android/icu/util/Calendar#SUNDAY)and 7 =[SATURDAY](https://developer.android.com/reference/android/icu/util/Calendar#SATURDAY).                                                                                                                                                                                     | | ` void`                                                                                                   | ` `[setLenient](https://developer.android.com/reference/android/icu/util/Calendar#setLenient(boolean))`(boolean lenient) ` Specify whether or not date/time interpretation is to be lenient.                                                                                                                                                                                                                                                                                                                                                         | | ` void`                                                                                                   | ` `[setMinimalDaysInFirstWeek](https://developer.android.com/reference/android/icu/util/Calendar#setMinimalDaysInFirstWeek(int))`(int value) ` Sets what the minimal days required in the first week of the year are.                                                                                                                                                                                                                                                                                                                                | | ` void`                                                                                                   | ` `[setRepeatedWallTimeOption](https://developer.android.com/reference/android/icu/util/Calendar#setRepeatedWallTimeOption(int))`(int option) ` **\[icu\]**Sets the behavior for handling wall time repeating multiple times at negative time zone offset transitions.                                                                                                                                                                                                                                                                               | | ` void`                                                                                                   | ` `[setSkippedWallTimeOption](https://developer.android.com/reference/android/icu/util/Calendar#setSkippedWallTimeOption(int))`(int option) ` **\[icu\]**Sets the behavior for handling skipped wall time at positive time zone offset transitions.                                                                                                                                                                                                                                                                                                  | | ` void`                                                                                                   | ` `[setTemporalMonthCode](https://developer.android.com/reference/android/icu/util/Calendar#setTemporalMonthCode(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` temporalMonth) ` Sets The Temporal monthCode which is a string identifier that starts with the literal grapheme "M" followed by two graphemes representing the zero-padded month number of the current month in a normal (non-leap) year and suffixed by an optional literal grapheme "L" if this is a leap month in a lunisolar calendar. | | ` final void`                                                                                             | ` `[setTime](https://developer.android.com/reference/android/icu/util/Calendar#setTime(java.util.Date))`(`[Date](https://developer.android.com/reference/java/util/Date)` date) ` Sets this Calendar's current time with the given Date.                                                                                                                                                                                                                                                                                                             | | ` void`                                                                                                   | ` `[setTimeInMillis](https://developer.android.com/reference/android/icu/util/Calendar#setTimeInMillis(long))`(long millis) ` Sets this Calendar's current time from the given long value.                                                                                                                                                                                                                                                                                                                                                           | | ` void`                                                                                                   | ` `[setTimeZone](https://developer.android.com/reference/android/icu/util/Calendar#setTimeZone(android.icu.util.TimeZone))`(`[TimeZone](https://developer.android.com/reference/android/icu/util/TimeZone)` value) ` Sets the time zone with the given time zone value.                                                                                                                                                                                                                                                                              | | ` `[Calendar](https://developer.android.com/reference/android/icu/util/Calendar)                          | ` `[setWeekData](https://developer.android.com/reference/android/icu/util/Calendar#setWeekData(android.icu.util.Calendar.WeekData))`(`[Calendar.WeekData](https://developer.android.com/reference/android/icu/util/Calendar.WeekData)` wdata) ` **\[icu\]**Set data in this calendar based on the WeekData input.                                                                                                                                                                                                                                    | | ` `[String](https://developer.android.com/reference/java/lang/String)                                     | ` `[toString](https://developer.android.com/reference/android/icu/util/Calendar#toString())`() ` Returns a string representation of this calendar.                                                                                                                                                                                                                                                                                                                                                                                                   | | ` void`                                                                                                   | ` `[validateField](https://developer.android.com/reference/android/icu/util/Calendar#validateField(int))`(int field) ` Validate a single field of this calendar.                                                                                                                                                                                                                                                                                                                                                                                     | | ` final void`                                                                                             | ` `[validateField](https://developer.android.com/reference/android/icu/util/Calendar#validateField(int,%20int,%20int))`(int field, int min, int max) ` Validate a single field of this calendar given its minimum and maximum allowed value.                                                                                                                                                                                                                                                                                                         | | ` void`                                                                                                   | ` `[validateFields](https://developer.android.com/reference/android/icu/util/Calendar#validateFields())`() ` Ensure that each field is within its valid range by calling[validateField(int)](https://developer.android.com/reference/android/icu/util/Calendar#validateField(int))on each field that has been set.                                                                                                                                                                                                                                   | | ` int`                                                                                                    | ` `[weekNumber](https://developer.android.com/reference/android/icu/util/Calendar#weekNumber(int,%20int,%20int))`(int desiredDay, int dayOfPeriod, int dayOfWeek) ` Returns the week number of a day, within a period.                                                                                                                                                                                                                                                                                                                               | | ` final int`                                                                                              | ` `[weekNumber](https://developer.android.com/reference/android/icu/util/Calendar#weekNumber(int,%20int))`(int dayOfPeriod, int dayOfWeek) ` Returns the week number of a day, within a period.                                                                                                                                                                                                                                                                                                                                                      | ||
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed.                   | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||
| From interface` `[java.lang.Comparable](https://developer.android.com/reference/java/lang/Comparable)` ` |-----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract int` | ` `[compareTo](https://developer.android.com/reference/java/lang/Comparable#compareTo(T))`(`[Calendar](https://developer.android.com/reference/android/icu/util/Calendar)` o) ` Compares this object with the specified object for order. | ||

## Constants

### AGRAHAYANA

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int AGRAHAYANA
```

Constant for Agrahayana, the 9th month of the Indian year.

<br />

Constant Value: 8 (0x00000008)  

### ASADHA

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int ASADHA
```

Constant for Asadha, the 4th month of the Indian year.

<br />

Constant Value: 3 (0x00000003)  

### ASVINA

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int ASVINA
```

Constant for Asvina, the 7th month of the Indian year.

<br />

Constant Value: 6 (0x00000006)  

### BHADRA

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int BHADRA
```

Constant for Bhadra, the 6th month of the Indian year.

<br />

Constant Value: 5 (0x00000005)  

### CHAITRA

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int CHAITRA
```

Constant for Chaitra, the 1st month of the Indian year.

<br />

Constant Value: 0 (0x00000000)  

### IE

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int IE
```

Constant for the Indian Era. This is the only allowable`ERA`value for the Indian calendar.

<br />

**See also:**

- [Calendar.ERA](https://developer.android.com/reference/android/icu/util/Calendar#ERA)

Constant Value: 0 (0x00000000)  

### JYAISTHA

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int JYAISTHA
```

Constant for Jyaistha, the 3rd month of the Indian year.

<br />

Constant Value: 2 (0x00000002)  

### KARTIKA

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int KARTIKA
```

Constant for Kartika, the 8th month of the Indian year.

<br />

Constant Value: 7 (0x00000007)  

### MAGHA

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int MAGHA
```

Constant for Magha, the 11th month of the Indian year.

<br />

Constant Value: 10 (0x0000000a)  

### PAUSA

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int PAUSA
```

Constant for Pausa, the 10th month of the Indian year.

<br />

Constant Value: 9 (0x00000009)  

### PHALGUNA

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int PHALGUNA
```

Constant for Phalguna, the 12th month of the Indian year.

<br />

Constant Value: 11 (0x0000000b)  

### SRAVANA

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int SRAVANA
```

Constant for Sravana, the 5th month of the Indian year.

<br />

Constant Value: 4 (0x00000004)  

### VAISAKHA

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int VAISAKHA
```

Constant for Vaisakha, the 2nd month of the Indian year.

<br />

Constant Value: 1 (0x00000001)

## Public constructors

### IndianCalendar

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public IndianCalendar ()
```

Constructs a`IndianCalendar`using the current time in the default time zone with the default`FORMAT`locale.

<br />

**See also:**

- [ULocale.Category.FORMAT](https://developer.android.com/reference/android/icu/util/ULocale.Category#FORMAT)  

### IndianCalendar

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public IndianCalendar (TimeZone zone)
```

Constructs a`IndianCalendar`based on the current time in the given time zone with the default`FORMAT`locale.

<br />

|                   Parameters                    ||
|--------|-----------------------------------------|
| `zone` | `TimeZone`: the given time zone. <br /> |

**See also:**

- [ULocale.Category.FORMAT](https://developer.android.com/reference/android/icu/util/ULocale.Category#FORMAT)  

### IndianCalendar

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public IndianCalendar (TimeZone zone, 
                ULocale locale)
```

Constructs a`IndianCalendar`based on the current time in the given time zone with the given locale.

<br />

|                    Parameters                     ||
|----------|-----------------------------------------|
| `zone`   | `TimeZone`: the given time zone. <br /> |
| `locale` | `ULocale`: the given ulocale. <br />    |

### IndianCalendar

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public IndianCalendar (TimeZone zone, 
                Locale aLocale)
```

Constructs a`IndianCalendar`based on the current time in the given time zone with the given locale.

<br />

|                     Parameters                     ||
|-----------|-----------------------------------------|
| `zone`    | `TimeZone`: the given time zone. <br /> |
| `aLocale` | `Locale`: the given locale. <br />      |

### IndianCalendar

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public IndianCalendar (ULocale locale)
```

Constructs a`IndianCalendar`based on the current time in the default time zone with the given locale.

<br />

|                   Parameters                   ||
|----------|--------------------------------------|
| `locale` | `ULocale`: the given ulocale. <br /> |

### IndianCalendar

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public IndianCalendar (int year, 
                int month, 
                int date)
```

Constructs a`IndianCalendar`with the given date set in the default time zone with the default`FORMAT`locale.

<br />

|                                                                                            Parameters                                                                                             ||
|---------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `year`  | `int`: The value used to set the calendar's[YEAR](https://developer.android.com/reference/android/icu/util/Calendar#YEAR)time field. <br />                                              |
| `month` | `int`: The value used to set the calendar's[MONTH](https://developer.android.com/reference/android/icu/util/Calendar#MONTH)time field. The value is 0-based. e.g., 0 for January. <br /> |
| `date`  | `int`: The value used to set the calendar's[DATE](https://developer.android.com/reference/android/icu/util/Calendar#DATE)time field. <br />                                              |

**See also:**

- [ULocale.Category.FORMAT](https://developer.android.com/reference/android/icu/util/ULocale.Category#FORMAT)  

### IndianCalendar

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public IndianCalendar (int year, 
                int month, 
                int date, 
                int hour, 
                int minute, 
                int second)
```

Constructs a IndianCalendar with the given date and time set for the default time zone with the default`FORMAT`locale.

<br />

|                                                                                             Parameters                                                                                             ||
|----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `year`   | `int`: The value used to set the calendar's[YEAR](https://developer.android.com/reference/android/icu/util/Calendar#YEAR)time field. <br />                                              |
| `month`  | `int`: The value used to set the calendar's[MONTH](https://developer.android.com/reference/android/icu/util/Calendar#MONTH)time field. The value is 0-based. e.g., 0 for January. <br /> |
| `date`   | `int`: The value used to set the calendar's[DATE](https://developer.android.com/reference/android/icu/util/Calendar#DATE)time field. <br />                                              |
| `hour`   | `int`: The value used to set the calendar's[HOUR_OF_DAY](https://developer.android.com/reference/android/icu/util/Calendar#HOUR_OF_DAY)time field. <br />                                |
| `minute` | `int`: The value used to set the calendar's[MINUTE](https://developer.android.com/reference/android/icu/util/Calendar#MINUTE)time field. <br />                                          |
| `second` | `int`: The value used to set the calendar's[SECOND](https://developer.android.com/reference/android/icu/util/Calendar#SECOND)time field. <br />                                          |

**See also:**

- [ULocale.Category.FORMAT](https://developer.android.com/reference/android/icu/util/ULocale.Category#FORMAT)  

### IndianCalendar

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public IndianCalendar (Date date)
```

Constructs a`IndianCalendar`with the given date set in the default time zone with the default`FORMAT`locale.

<br />

|                            Parameters                             ||
|--------|-----------------------------------------------------------|
| `date` | `Date`: The date to which the new calendar is set. <br /> |

**See also:**

- [ULocale.Category.FORMAT](https://developer.android.com/reference/android/icu/util/ULocale.Category#FORMAT)  

### IndianCalendar

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public IndianCalendar (Locale aLocale)
```

Constructs a`IndianCalendar`based on the current time in the default time zone with the given locale.

<br />

|                  Parameters                   ||
|-----------|------------------------------------|
| `aLocale` | `Locale`: the given locale. <br /> |

## Public methods

### getType

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public String getType ()
```

**\[icu\]**Returns the calendar type name string for this Calendar object. The returned string is the legacy ICU calendar attribute value, for example, "gregorian" or "japanese".

See type="old type name" for the calendar attribute of locale IDs at http://www.unicode.org/reports/tr35/#Key_Type_Definitions

<br />

|                                                   Returns                                                   ||
|--------------------------------------------------------------------|-----------------------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | legacy calendar type name string <br /> |

## Protected methods

### handleComputeFields

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
protected void handleComputeFields (int julianDay)
```

Subclasses may override this method to compute several fields specific to each calendar system. These are:

- ERA
- YEAR
- MONTH
- DAY_OF_MONTH
- DAY_OF_YEAR
- EXTENDED_YEAR

Subclasses can refer to the DAY_OF_WEEK and DOW_LOCAL fields, which will be set when this method is called. Subclasses can also call the getGregorianXxx() methods to obtain Gregorian calendar equivalents for the given Julian day.

In addition, subclasses should compute any subclass-specific fields, that is, fields from BASE_FIELD_COUNT to getFieldCount() - 1.

The default implementation in`Calendar`implements a pure proleptic Gregorian calendar.

<br />

|        Parameters         ||
|-------------|--------------|
| `julianDay` | `int` <br /> |

### handleComputeMonthStart

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
protected int handleComputeMonthStart (int year, 
                int month, 
                boolean useMonth)
```

Returns the Julian day number of day before the first day of the given month in the given extended year. Subclasses should override this method to implement their calendar system.

<br />

|                                                                             Parameters                                                                             ||
|------------|--------------------------------------------------------------------------------------------------------------------------------------------------------|
| `year`     | `int`: the extended year <br />                                                                                                                        |
| `month`    | `int`: the zero-based month, or 0 if useMonth is false <br />                                                                                          |
| `useMonth` | `boolean`: if false, compute the day before the first day of the given year, otherwise, compute the day before the first day of the given month <br /> |

|                                             Returns                                             ||
|-------|------------------------------------------------------------------------------------------|
| `int` | the Julian day number of the day before the first day of the given month and year <br /> |

### handleGetExtendedYear

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
protected int handleGetExtendedYear ()
```

Returns the extended year defined by the current fields. This will use the EXTENDED_YEAR field or the YEAR and supra-year fields (such as ERA) specific to the calendar system, depending on which set of fields is newer.

<br />

|             Returns             ||
|-------|--------------------------|
| `int` | the extended year <br /> |

### handleGetLimit

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
protected int handleGetLimit (int field, 
                int limitType)
```

Subclass API for defining limits of different types. Subclasses must implement this method to return limits for the following fields:  

```
ERA
 YEAR
 MONTH
 WEEK_OF_YEAR
 WEEK_OF_MONTH
 DAY_OF_MONTH
 DAY_OF_YEAR
 DAY_OF_WEEK_IN_MONTH
 YEAR_WOY
 EXTENDED_YEAR
```

<br />

<br />

|                                         Parameters                                         ||
|-------------|-------------------------------------------------------------------------------|
| `field`     | `int`: one of the above field numbers <br />                                  |
| `limitType` | `int`: one of`MINIMUM`,`GREATEST_MINIMUM`,`LEAST_MAXIMUM`, or`MAXIMUM` <br /> |

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### handleGetMonthLength

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
protected int handleGetMonthLength (int extendedYear, 
                int month)
```

Returns the number of days in the given month of the given extended year of this calendar system. Subclasses should override this method if they can provide a more correct or more efficient implementation than the default implementation in Calendar.

<br />

|          Parameters          ||
|----------------|--------------|
| `extendedYear` | `int` <br /> |
| `month`        | `int` <br /> |

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### handleGetYearLength

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
protected int handleGetYearLength (int extendedYear)
```

Returns the number of days in the given extended year of this calendar system. Subclasses should override this method if they can provide a more correct or more efficient implementation than the default implementation in Calendar.

<br />

|          Parameters          ||
|----------------|--------------|
| `extendedYear` | `int` <br /> |

|    Returns    ||
|-------|--------|
| `int` | <br /> |