DayPilot.Duration(milliseconds);
Parameters:
milliseconds
(number) - specifies the duration in milliseconds
DayPilot.Duration(start, end);
Parameters:
start
(DayPilot.Date or ISO string)
end
(DayPilot.Date or ISO string)
One minute specified using milliseconds:
const minute = new DayPilot.Duration(1000*60);
Difference between two dates:
const days = new DayPilot.Duration("2025-01-01", "2025-01-05");