(self: Input)
| 1009 | * @since 3.8.0 |
| 1010 | */ |
| 1011 | export const toWeeks = (self: Input): number => |
| 1012 | match(fromInputUnsafe(self), { |
| 1013 | onMillis: (millis) => millis / 604_800_000, |
| 1014 | onNanos: (nanos) => nanosToUnit(nanos, 604_800_000_000_000), |
| 1015 | onInfinity: () => Infinity, |
| 1016 | onNegativeInfinity: () => -Infinity |
| 1017 | }) |
| 1018 | |
| 1019 | /** |
| 1020 | * Gets the duration in nanoseconds as a bigint. |
nothing calls this directly
no test coverage detected