MCPcopy Create free account
hub / github.com/DHTMLX/scheduler / getDaysDifference

Function getDaysDifference

codebase/sources/dhtmlxscheduler.js:3569–3575  ·  view source on GitHub ↗
(startDate, endDate)

Source from the content-addressed store, hash-verified

3567 }
3568 };
3569 function getDaysDifference(startDate, endDate) {
3570 const start = new Date(startDate);
3571 const end = new Date(endDate);
3572 const differenceInTime = end.getTime() - start.getTime();
3573 const differenceInDays = differenceInTime / (1e3 * 3600 * 24);
3574 return Math.abs(differenceInDays);
3575 }
3576 scheduler2._get_real_event_length = function(startDate, endDate, config) {
3577 var eventLength = endDate - startDate;
3578 var ignore = this["ignore_" + this._mode];

Callers 1

extend$jFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected