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:

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

Difference between two dates:

const days = new DayPilot.Duration("2025-01-01", "2025-01-05");