Class ilib.Cal.ThaiSolar
Construct a new Thai solar calendar object. This class encodes information about a Thai solar calendar.
Depends directive: !depends thaisolar.js
Defined in: ilib-dyn-full.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.
|
|
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|ilib.Date.ThaiSolarDate} year
- the year for which the leap year information is being sought
- Returns:
- {boolean} true if the given year is a leap year
{ilib.Date}
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
- Returns:
- {ilib.Date} a date appropriate for this calendar type