def Iso8601.show.t
import bend-time-lib@0.4.0.1/iso8601.bend as Iso8601import Base
123def Iso8601.show.t(
124 +h: U32, +mi: U32, +s: U32, +nanos: U32
125) -> String:
126 String.append(
127 Iso8601.show.unit(h, 'H'),
128 String.append(
129 Iso8601.show.unit(mi, 'M'),
130 Iso8601.show.s(s, nanos, Bool.or(U32.is_gt(s, 0), U32.is_gt(nanos, 0)))
131 )
132 )