method Duration.prototype.toSeconds Duration.prototype.toSeconds(): number Converts the duration to seconds. Return Type number