Class ThaiSolarCal
Extends
Calendar.
Construct a new Thai solar calendar object. This class encodes information about
a Thai solar calendar.
Defined in: ilib-full-dyn.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
isLeapYear(year)
Return true if the given year is a leap year in the Thai solar calendar.
|
|
<deprecated> |
newDateInstance(options)
Return a date instance for this calendar type using the given
options.
|
Method Detail
{boolean}
isLeapYear(year)
Return true if the given year is a leap year in the Thai solar calendar.
The year parameter may be given as a number, or as a ThaiSolarDate object.
- Parameters:
- {number|ThaiSolarDate} year
- the year for which the leap year information is being sought
- Returns:
- {boolean} true if the given year is a leap year
<deprecated>
{IDate}
newDateInstance(options)
Return a date instance for this calendar type using the given
options.
- Parameters:
- {Object} options
- options controlling the construction of the date instance
- Deprecated:
- Since 11.0.5. Use DateFactory({calendar: cal.getType(), ...}) instead
- Returns:
- {IDate} a date appropriate for this calendar type