I need to group the timings to show from time and to time, instead of hours
If you just want to change the content of the time header, you can use the onBeforeTimeHeaderRender event handler to customize it in the Pro version of the Calendar.
To define custom time slots, it is necessary to use the Scheduler component. The Calendar doesn’t support this option at the moment.