Return the Interval as a Duration.
(self)
| 305 | i += amount |
| 306 | |
| 307 | def as_duration(self) -> Duration: |
| 308 | """ |
| 309 | Return the Interval as a Duration. |
| 310 | """ |
| 311 | return Duration(seconds=self.total_seconds()) |
| 312 | |
| 313 | def __iter__(self) -> Iterator[_T]: |
| 314 | return self.range("days") |
no test coverage detected