(self: DurationInput)
| 336 | * @category getters |
| 337 | */ |
| 338 | export const toDays = (self: DurationInput): number => |
| 339 | match(self, { |
| 340 | onMillis: (millis) => millis / 86_400_000, |
| 341 | onNanos: (nanos) => Number(nanos) / 86_400_000_000_000 |
| 342 | }) |
| 343 | |
| 344 | /** |
| 345 | * @since 3.8.0 |