The ofHours() method returns a DayPilot.Duration instance representing the specified number of hours.
DayPilot.Duration.ofHours();
DayPilot.Duration class
var hour = DayPilot.Duration.ofHours(1);