The milliseconds() method returns the millisecond component of the duration.
Declaration
DayPilot.Duration.milliseconds()Return Value
Returns the milliseconds part of the duration.
Notes
Use DayPilot.Duration.totalMilliseconds() when you need the full duration converted to milliseconds instead of just the millisecond component.
Example
const ms = new DayPilot.Duration("2020-01-01T00:00:00", "2020-01-05T12:30:15.100").milliseconds(); // 100See Also
DayPilot.Duration.totalMilliseconds()
DayPilot.Duration.totalSeconds()
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot