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