(self: Input)
| 961 | * @since 3.8.0 |
| 962 | */ |
| 963 | export const toHours = (self: Input): number => |
| 964 | match(fromInputUnsafe(self), { |
| 965 | onMillis: (millis) => millis / 3_600_000, |
| 966 | onNanos: (nanos) => nanosToUnit(nanos, 3_600_000_000_000), |
| 967 | onInfinity: () => Infinity, |
| 968 | onNegativeInfinity: () => -Infinity |
| 969 | }) |
| 970 | |
| 971 | /** |
| 972 | * Converts a Duration to days. |
nothing calls this directly
no test coverage detected