I’m using addMarkedTimespan to block off times in the calendar, and it works great when using 0-6 for recurring blocks, but when I want to block specific known dates, it doesn’t work. For example:
Hi,
more precisely, zones are specifying time intervals within a day. Each interval is defined by pair (i, i+1) of values of an arrayzones:[interval1_start, interval1_end, interval2_start, interval2_end, ...]
zones:[interval1_start, interval1_end, interval2_start, interval2_end]
Time values are specified as minutes since midnight (e.g. 60 for 1am, 150 for 2:30am). It may became not readable if you specify full values, so usually it is written as a composition of hour and minute part:zones:[8*60, 11*60 + 30];//8:00am - 11:30am
zones:[8*60, 11*60 + 30, 12*60 + 30, 18*60]//8:00am - 11:30am and 12:30pm-6:00pm
Ah, that explains it! Makes perfect sense now. So all of the x*60 stuff I’ve been seeing in the documentation is just to make it easier to read, and javascript “does the math” when it loads the page. If I’m retrieving these zones from php, I may as well go ahead and represent the zones in minutes, and save myself a thousandth of a second or whatever it takes to do basic multiplication!
Thanks for the quick responses.
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan