def Period.between.go
import bend-time-lib@0.4.0.1/period.bend as Periodimport Base
import bend-time-lib@0.4.0.1/date.bend as D
148def Period.between.go(
149 +start: D.Date, +end: D.Date
150) -> Result<&2, &2, Period.Error, Period>:
151 match start end:
152 case D.Date{+sy, +sm, +sd} D.Date{+ey, +em, +ed}:
153 Period.between.day(
154 start, end,
155 Period.emonth(sy, sm), Period.emonth(ey, em),
156 U32.is_lt(ed, sd)
157 )