The ofSeconds() method returns a DayPilot.Duration instance representing the specified number of seconds.
DayPilot.Duration.ofSeconds();
DayPilot.Duration class
var second = DayPilot.Duration.ofSeconds(1);