cf.TimeDuration.iso¶
-
TimeDuration.
iso
¶ Return the time duration as an ISO 8601-like time duration string.
New in version 1.0.
Examples:
>>> cf.TimeDuration(45, 'days').iso 'P45D' >>> cf.TimeDuration(10, 'calendar_years').iso 'P10Y' >>> cf.s(5.67).iso 'PT5.67S' >>> cf.M(18.5).iso 'P18.5M'