Datetime.LocalDateTime.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 371-376 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=371&end_line=376 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 LocalDateTime.add_period( ldt: LocalDateTime, p: Per.Period ) -> Result<&2, &2, D.Date.Error, LocalDateTime>: match ldt: case LocalDateTime{+date, +time}: LocalDateTime.add_period.map(time, Per.Period.add_to(p, date)) Uses (6): 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 https://jend.leeeet.dev/definition.txt?path=bend-time-lib@0.4.0.1/datetime.bend&name=LocalDateTime.add_period.map https://jend.leeeet.dev/definition.txt?path=bend-time-lib@0.4.0.1/period.bend&name=Period https://jend.leeeet.dev/definition.txt?path=bend-time-lib@0.4.0.1/period.bend&name=Period.add_to