def time.week.of
import ezsys@0.1.0.0/src/clock.bend as Clockimport Base
325# the ISO year and week of a week's Thursday: the Thursday's calendar year,
326# and how many Thursdays of that year it is
327def time.week.of(+thu: U32, date: Ymd) -> U32 & U32:
328 match date:
329 case Ymd{+year, _month, _day}:
330 (year, ((thu - time.jan1(year)) / 7 + 1 : U32))