DayPilot.Duration.totalSeconds

The totalSeconds() method returns the duration converted to seconds.

Declaration

DayPilot.Duration.totalSeconds()

Return Value

Returns the duration converted to seconds. If the duration includes milliseconds, the result will be a fractional number.

Example

const seconds = new DayPilot.Duration("2020-01-01T00:00:00", "2020-01-05T12:30:15.100").totalSeconds();  // 390615.1

See Also

DayPilot.Duration.seconds()

DayPilot.Duration Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript