Duration.Duration.to_secs.add: def of bend-time-lib@0.4.0.1 Import: import bend-time-lib@0.4.0.1/duration.bend as Duration Lines 21-28 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=21&end_line=28 import Base def Duration.to_secs.add( +days: U32, +sod: U32, ok: Bool ) -> Result<&2, &2, Duration.Error, U32>: match ok: case False{}: Fail{OutOfRange{}} case True{}: Done{U32.add(U32.mul(days, 86400), sod)} 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=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.mul https://jend.leeeet.dev/definition.txt?path=bend-time-lib@0.4.0.1/duration.bend&name=Duration.Error