method Duration.prototype.toMilliseconds Duration.prototype.toMilliseconds(): number Converts the duration to milliseconds. Return Type number