Duration.Duration.add.sod2: def of bend-time-lib@0.4.0.1 Import: import bend-time-lib@0.4.0.1/duration.bend as Duration Lines 163-175 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=163&end_line=175 import Base def Duration.add.sod2( +d1: U32, +d2: U32, +sod: U32, +nanos: U32, ge: Bool ) -> Result<&2, &2, Duration.Error, Duration>: match ge: case False{}: Duration.add.days( d1, d2, sod, nanos, 0, U32.is_le(d2, U32.sub(U32.not(0), d1)) ) case True{}: Duration.add.days( d1, d2, U32.sub(sod, 86400), nanos, 1, U32.is_le(U32.add(d2, 1), U32.sub(U32.not(0), d1)) ) Uses (10): 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.is_le https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.not https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.sub https://jend.leeeet.dev/definition.txt?path=bend-time-lib@0.4.0.1/duration.bend&name=Duration 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.add.days