Return the interval as a native timedelta.
(self)
| 290 | return 1 |
| 291 | |
| 292 | def as_timedelta(self) -> timedelta: |
| 293 | """ |
| 294 | Return the interval as a native timedelta. |
| 295 | """ |
| 296 | return timedelta(seconds=self.total_seconds()) |
| 297 | |
| 298 | def __str__(self) -> str: |
| 299 | return self.in_words() |