Datetime.OffsetDateTime.add_period: def of bend-time-lib@0.4.0.1 Import: import bend-time-lib@0.4.0.1/datetime.bend as Datetime Lines 387-394 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=387&end_line=394 import Base import bend-time-lib@0.4.0.1/date.bend as D import bend-time-lib@0.4.0.1/period.bend as Per def OffsetDateTime.add_period( +odt: OffsetDateTime, p: Per.Period ) -> Result<&2, &2, D.Date.Error, OffsetDateTime>: match odt: case OffsetDateTime{_, _, +offset}: OffsetDateTime.add_period.map( offset, LocalDateTime.add_period(OffsetDateTime.to_local(odt), p) ) 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/date.bend&name=Date.Error https://jend.leeeet.dev/definition.txt?path=bend-time-lib@0.4.0.1/datetime.bend&name=LocalDateTime.add_period 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_period.map https://jend.leeeet.dev/definition.txt?path=bend-time-lib@0.4.0.1/datetime.bend&name=OffsetDateTime.to_local https://jend.leeeet.dev/definition.txt?path=bend-time-lib@0.4.0.1/period.bend&name=Period