Skip to main content

getWorkHours

Description

Returns the working hours of the specified date

getWorkHours: (date: Date) => any[]

Parameters

  • date - (required) Date - a date to check

Returns

  • hours - (array) - a working period of the date

Example

gantt.config.work_time = true;
gantt.init("gantt_here");

gantt.getWorkHours(new Date(2013,03,30))// -> [8, 17] /*!*/