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