(self: DurationInput)
| 326 | * @category getters |
| 327 | */ |
| 328 | export const toHours = (self: DurationInput): number => |
| 329 | match(self, { |
| 330 | onMillis: (millis) => millis / 3_600_000, |
| 331 | onNanos: (nanos) => Number(nanos) / 3_600_000_000_000 |
| 332 | }) |
| 333 | |
| 334 | /** |
| 335 | * @since 3.8.0 |