Methods
-
<inner> getHolidays( db, callback )
-
Description
Get a list of Holidays that are stored in the specified database.
Parameters
Name Type Description dbRightTrackDB The Right Track DB to query
callbackfunction Callback function
Name Type Attributes Description errorError Database Query Error
holidaysArray.<Holiday> <optional> The selected Holidays
Details
-
<inner> getHoliday( db, date, callback )
-
Description
Get the Holiday for the specified date or 'undefined' if there is no holiday on the date
Parameters
Name Type Description dbRightTrackDB The Right Track DB to query
dateint the date (yyyymmdd)
callbackfunction Callback function
Name Type Attributes Description errorError Database Query Error
holidayHoliday <optional> The selected Holiday
Details
-
<inner> isHoliday( db, date, callback )
-
Description
Check if the specified date is a Holiday
Parameters
Name Type Description dbRightTrackDB The Right Track DB to query
dateint The date to check (yyyymmdd)
callbackfunction Callback function
Name Type Attributes Description errorError Database Query Error
isHolidayboolean <optional> True if the specified date is a Holiday
Details