DayPilot.Duration.ofHours

The ofHours() method returns a DayPilot.Duration instance representing the specified number of hours.

Declaration

DayPilot.Duration.ofHours();

Return Value

DayPilot.Duration class

Example

var hour = DayPilot.Duration.ofHours(1);

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript