def Period.add_to.y2
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
69def Period.add_to.y2(
70 +y: U32, +m: U32, +d: U32, +pd: U32
71) -> Result<&2, &2, D.Date.Error, D.Date>:
72 Period.add_to.y3(y, m, d, pd, Bool.and(U32.is_ge(y, 1), U32.is_le(y, 9999)))