(self: Input)
| 865 | * @since 4.1.0 |
| 866 | */ |
| 867 | export const toMicros = (self: Input): number => |
| 868 | match(fromInputUnsafe(self), { |
| 869 | onMillis: (millis) => millis * 1_000, |
| 870 | onNanos: (nanos) => nanosToUnit(nanos, 1_000), |
| 871 | onInfinity: () => Infinity, |
| 872 | onNegativeInfinity: () => -Infinity |
| 873 | }) |
| 874 | |
| 875 | /** |
| 876 | * Converts a Duration to milliseconds. |
nothing calls this directly
no test coverage detected