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