Iso8601.Iso8601.show_duration.go: def of bend-time-lib@0.4.0.1 Import: import bend-time-lib@0.4.0.1/iso8601.bend as Iso8601 Lines 133-150 of bend-time-lib@0.4.0.1/iso8601.bend: https://jend.leeeet.dev/read.txt?path=bend-time-lib@0.4.0.1/iso8601.bend&start_line=133&end_line=150 import Base def Iso8601.show_duration.go( +days: U32, +h: U32, +mi: U32, +s: U32, +nanos: U32, has_d: Bool, has_t: Bool ) -> String: match has_d has_t: case False{} False{}: "PT0S" case True{} False{}: String.append("P", String.append(Iso8601.show_u32(days), "D")) case False{} True{}: String.append("PT", Iso8601.show.t(h, mi, s, nanos)) case True{} True{}: String.append( "P", String.append( Iso8601.show_u32(days), String.append("DT", Iso8601.show.t(h, mi, s, nanos)) ) ) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-time-lib@0.4.0.1/iso8601.bend&name=Iso8601.show.t https://jend.leeeet.dev/definition.txt?path=bend-time-lib@0.4.0.1/iso8601.bend&name=Iso8601.show_u32