License:
BSD style: see license.txtVersion:
Mid 2005: Initial release Apr 2007: reshapedAuthor:
John Chapman, KrisRemarks:
Calendar is the abstract base class for the following Calendar implementations: Gregorian, Hebrew, Hijri, Japanese, Korean, Taiwan and ThaiBuddhist.Params:
| year | An integer representing the _year. |
| month | An integer representing the _month. |
| day | An integer representing the _day. |
| hour | An integer representing the _hour. |
| minute | An integer representing the _minute. |
| second | An integer representing the _second. |
| millisecond | An integer representing the _millisecond. |
Returns:
The Time set to the specified date and time.Params:
| date | a representation of the Date |
Returns:
The Time set to the specified date.Params:
| dt | a representation of the date and time |
Returns:
The Time set to the specified date and time.Params:
| d | a representation of the date |
| t | a representation of the day time |
Returns:
The Time set to the specified date and time.Params:
| year | An integer representing the _year. |
| month | An integer representing the _month. |
| day | An integer representing the _day. |
| hour | An integer representing the _hour. |
| minute | An integer representing the _minute. |
| second | An integer representing the _second. |
| millisecond | An integer representing the _millisecond. |
| era | An integer representing the _era. |
Returns:
A Time set to the specified date and time.Params:
| time | A Time value. |
Returns:
A DayOfWeek value representing the day of the week of time.Params:
| time | A Time value. |
Returns:
An integer representing the day of the month of time.Params:
| time | A Time value. |
Returns:
An integer representing the day of the year of time.Params:
| time | A Time value. |
Returns:
An integer representing the month in time.Params:
| time | A Time value. |
Returns:
An integer representing the year in time.Params:
| time | A Time value. |
Returns:
An integer representing the ear in time.Params:
| year | An integer representing the _year. |
| month | An integer representing the _month. |
Returns:
The number of days in the specified _year and _month of the current era.Params:
| year | An integer representing the _year. |
| month | An integer representing the _month. |
| era | An integer representing the _era. |
Returns:
The number of days in the specified _year and _month of the specified _era.Params:
| year | An integer representing the _year. |
Returns:
The number of days in the specified _year in the current era.Params:
| year | An integer representing the _year. |
| era | An integer representing the _era. |
Returns:
The number of days in the specified _year in the specified _era.Params:
| year | An integer representing the _year. |
Returns:
The number of months in the specified _year in the current era.Params:
| year | An integer representing the _year. |
| era | An integer representing the _era. |
Returns:
The number of months in the specified _year in the specified _era.Params:
| time | A Time value. |
| rule | A WeekRule value defining a calendar week. |
| firstDayOfWeek | A DayOfWeek value representing the first day of the week. |
Returns:
An integer representing the week of the year that includes the date in time.Params:
| year | An integer representing the _year. |
Returns:
true is the specified _year is a leap _year; otherwise, false.Params:
| year | An integer representing the _year. |
Params:
| era | An integer representing the _era. |
Returns:
true is the specified _year is a leap _year; otherwise, false.Returns:
An integer array representing the eras in the current calendar.Returns:
An integer representing the identifier of the current calendar.Params:
| t | A time to add the months to |
Params:
| nMonths | The number of months to add. This can be negative. |
Params:
| truncateDay | Round the day down to the maximum day of the target month if necessary. |
Returns:
A Time that represents the provided time with the number of months added.Params:
| t | A time to add the years to |
Params:
| nYears | The number of years to add. This can be negative. |
Returns:
A Time that represents the provided time with the number of years added.