getWorkHours

returns the working hours of the specified date

array getWorkHours(Date date);

Parameters

dateDatea date to check

Returns

arraya working period of the date

Example

gantt.config.work_time = true;
gantt.init("gantt_here");
 
gantt.getWorkHours(new Date(2013,03,30))// -> [8, 17]

See also
Back to top