@adaptabletools/adaptable
Version:
Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements
30 lines (29 loc) • 801 B
TypeScript
/**
* Calendar, Holiday and Working Day related functions, using supplied Holidays in Holiday Options
**/
export interface CalendarApi {
/**
* Returns the next Working Day
*/
getNextWorkingDay(): Date;
/**
* Returns the previous Working Day
*/
getPreviousWorkingDay(): Date;
/**
* Checks if given date is a Working Day
* @param dateToCheck Date To Check
*/
isWorkingDay(dateToCheck: Date): boolean;
/**
* Checks if given data is a Holiday
* @param dateToCheck Date to Check
*/
isHoliday(dateToCheck: Date): boolean;
/**
* Returns true if both Dates are the same, ignoring the time portions
* @param date1 1st Date
* @param date2 2nd Date
*/
isSameDay(date1: Date, date2: Date): boolean;
}