Unfortunately, currently scheduler doesn’t have such api.
But you could get it from scheduler._marked_timespans object.
For example if you want to get marked (not blocked) times for specific date, for specific resource on timeline you could use something like this:
var timelineName = "timeline",
resouce = "2",
date = new Date(2012,7,6);
var marks = scheduler._marked_timespans[timelineName][resouce];
if(marks)
{
//For common marks
var day = date.getDay();
if(marks[day] && marks[day].default){
var sections = marks[day].default;
for(var i = 0; i < sections.length; i++){
console.log(sections[i].zones)
}
}
//For specific marks
var time = date.valueOf();
if(marks[time] && marks[time].default){
var sections = marks[time].default;
for(var i = 0; i < sections.length; i++){
console.log(sections[i].zones)
}
}
}
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan