(self: DurationInput)
| 306 | * @category getters |
| 307 | */ |
| 308 | export const toSeconds = (self: DurationInput): number => |
| 309 | match(self, { |
| 310 | onMillis: (millis) => millis / 1_000, |
| 311 | onNanos: (nanos) => Number(nanos) / 1_000_000_000 |
| 312 | }) |
| 313 | |
| 314 | /** |
| 315 | * @since 3.8.0 |