Datetime.OffsetDateTime.sub: def of bend-time-lib@0.4.0.1 Import: import bend-time-lib@0.4.0.1/datetime.bend as Datetime Lines 262-269 of bend-time-lib@0.4.0.1/datetime.bend: https://jend.leeeet.dev/read.txt?path=bend-time-lib@0.4.0.1/datetime.bend&start_line=262&end_line=269 import Base import bend-time-lib@0.4.0.1/duration.bend as Dur import bend-time-lib@0.4.0.1/instant.bend as I def OffsetDateTime.sub( +odt: OffsetDateTime, d: Dur.Duration ) -> Result<&2, &2, I.Instant.Error, OffsetDateTime>: match odt: case OffsetDateTime{_, _, +offset}: OffsetDateTime.add.map( offset, I.Instant.sub(OffsetDateTime.to_instant(odt), d) ) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=bend-time-lib@0.4.0.1/datetime.bend&name=OffsetDateTime https://jend.leeeet.dev/definition.txt?path=bend-time-lib@0.4.0.1/datetime.bend&name=OffsetDateTime.add.map https://jend.leeeet.dev/definition.txt?path=bend-time-lib@0.4.0.1/datetime.bend&name=OffsetDateTime.to_instant 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/instant.bend&name=Instant.Error https://jend.leeeet.dev/definition.txt?path=bend-time-lib@0.4.0.1/instant.bend&name=Instant.sub