Duration.Duration.to_hms.go: def of bend-time-lib@0.4.0.1 Import: import bend-time-lib@0.4.0.1/duration.bend as Duration Lines 302-315 of bend-time-lib@0.4.0.1/duration.bend: https://jend.leeeet.dev/read.txt?path=bend-time-lib@0.4.0.1/duration.bend&start_line=302&end_line=315 import Base def Duration.to_hms.go( +days: U32, +sod: U32, ok: Bool ) -> Result<&2, &2, Duration.Error, Duration.Hms>: match ok: case False{}: Fail{OutOfRange{}} case True{}: Done{ Hms{ U32.add(U32.mul(days, 24), U32.div(sod, 3600)), U32.div(U32.mod(sod, 3600), 60), U32.mod(sod, 60) } } Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.div https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.mod https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.mul https://jend.leeeet.dev/definition.txt?path=bend-time-lib@0.4.0.1/duration.bend&name=Duration.Error https://jend.leeeet.dev/definition.txt?path=bend-time-lib@0.4.0.1/duration.bend&name=Duration.Hms