(self: Input)
| 809 | * @since 2.0.0 |
| 810 | */ |
| 811 | export const toSeconds = (self: Input): number => |
| 812 | match(fromInputUnsafe(self), { |
| 813 | onMillis: (millis) => millis / 1_000, |
| 814 | onNanos: (nanos) => Number(nanos) / 1_000_000_000, |
| 815 | onInfinity: () => Infinity, |
| 816 | onNegativeInfinity: () => -Infinity |
| 817 | }) |
| 818 | |
| 819 | /** |
| 820 | * Converts a Duration to minutes. |
nothing calls this directly
no test coverage detected