DayPilot.Duration Constructor

Declaration

DayPilot.Duration(milliseconds);

Parameters:

  • milliseconds (number) - specifies the duration in milliseconds
DayPilot.Duration(start, end);

Parameters:

Examples

One minute specified using milliseconds:

var minute = new DayPilot.Duration(1000*60);

Difference between two dates:

var days = new DayPilot.Duration("2020-01-01", "2020-01-05");