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