DayPilot.Duration.totalSeconds

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

Declaration

DayPilot.Duration.totalSeconds();

Return Value

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

See Also

Example

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