(self: Input)
| 878 | * @since 3.8.0 |
| 879 | */ |
| 880 | export const toDays = (self: Input): number => |
| 881 | match(fromInputUnsafe(self), { |
| 882 | onMillis: (millis) => millis / 86_400_000, |
| 883 | onNanos: (nanos) => Number(nanos) / 86_400_000_000_000, |
| 884 | onInfinity: () => Infinity, |
| 885 | onNegativeInfinity: () => -Infinity |
| 886 | }) |
| 887 | |
| 888 | /** |
| 889 | * Converts a Duration to weeks. |
nothing calls this directly
no test coverage detected