to_duration¶ In std/time. fn to_duration(self: String) : Option<Duration> self read as an ISO 8601 duration without years or months, or none.