DayPilot.Duration.minutes

The minutes() method returns the minute component of the duration as an integer number of full minutes.

Declaration

DayPilot.Duration.minutes()

Return Value

Returns the minute part of the duration. The value contains full minutes only, so it is always an integer.

Notes

Use DayPilot.Duration.totalMinutes() when you need the entire duration converted to minutes instead of just the minute component.

Example

const minutes = new DayPilot.Duration("2020-01-01T00:00:00", "2020-01-05T12:30:15").minutes(); // 30

See Also

DayPilot.Duration.totalMinutes()

External Drag and Drop [doc.daypilot.org]

DayPilot.Duration Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript