(self: Input)
| 901 | * @since 3.8.0 |
| 902 | */ |
| 903 | export const toWeeks = (self: Input): number => |
| 904 | match(fromInputUnsafe(self), { |
| 905 | onMillis: (millis) => millis / 604_800_000, |
| 906 | onNanos: (nanos) => Number(nanos) / 604_800_000_000_000, |
| 907 | onInfinity: () => Infinity, |
| 908 | onNegativeInfinity: () => -Infinity |
| 909 | }) |
| 910 | |
| 911 | /** |
| 912 | * Gets the duration in nanoseconds as a bigint. |
nothing calls this directly
no test coverage detected