(self: Input)
| 786 | * @since 2.0.0 |
| 787 | */ |
| 788 | export const toMillis = (self: Input): number => |
| 789 | match(fromInputUnsafe(self), { |
| 790 | onMillis: identity, |
| 791 | onNanos: (nanos) => Number(nanos) / 1_000_000, |
| 792 | onInfinity: () => Infinity, |
| 793 | onNegativeInfinity: () => -Infinity |
| 794 | }) |
| 795 | |
| 796 | /** |
| 797 | * Converts a Duration to seconds. |
nothing calls this directly
no test coverage detected