Period.verbose#
- property Period.verbose: str#
This period’s duration, offset and origin, spelled out in English words.
For display only - not accepted by
of()or any other constructor. Seeiso_durationand__str__()for the parseable forms.- Returns:
A string such as “1 year (+9 months and 9 hours)”
Examples
>>> Period.of_years(1).verbose '1 year' >>> Period.of("P1D+T9H").verbose '1 day (+9 hours)' >>> Period.of("2024-01-01/P7D").verbose '7 days (from 2024-01-01)'