(self: Input)
| 985 | * @since 3.8.0 |
| 986 | */ |
| 987 | export const toDays = (self: Input): number => |
| 988 | match(fromInputUnsafe(self), { |
| 989 | onMillis: (millis) => millis / 86_400_000, |
| 990 | onNanos: (nanos) => nanosToUnit(nanos, 86_400_000_000_000), |
| 991 | onInfinity: () => Infinity, |
| 992 | onNegativeInfinity: () => -Infinity |
| 993 | }) |
| 994 | |
| 995 | /** |
| 996 | * Converts a Duration to weeks. |
nothing calls this directly
no test coverage detected