* @param {number} value * @param {string|undefined} format * @return {string}
(value, format)
| 508 | * @return {string} |
| 509 | */ |
| 510 | format(value, format) { |
| 511 | const options = this.options; |
| 512 | const formats = options.time.displayFormats; |
| 513 | const unit = this._unit; |
| 514 | const fmt = format || formats[unit]; |
| 515 | return this._adapter.format(value, fmt); |
| 516 | } |
| 517 | |
| 518 | /** |
| 519 | * Function to format an individual tick mark |