(self: Input)
| 855 | * @since 3.8.0 |
| 856 | */ |
| 857 | export const toHours = (self: Input): number => |
| 858 | match(fromInputUnsafe(self), { |
| 859 | onMillis: (millis) => millis / 3_600_000, |
| 860 | onNanos: (nanos) => Number(nanos) / 3_600_000_000_000, |
| 861 | onInfinity: () => Infinity, |
| 862 | onNegativeInfinity: () => -Infinity |
| 863 | }) |
| 864 | |
| 865 | /** |
| 866 | * Converts a Duration to days. |
nothing calls this directly
no test coverage detected