Clock.time.week.text: def of ezsys@0.1.0.0 Import: import ezsys@0.1.0.0/src/clock.bend as Clock Lines 341-344 of ezsys@0.1.0.0/src/clock.bend: https://jend.leeeet.dev/read.txt?path=ezsys@0.1.0.0/src/clock.bend&start_line=341&end_line=344 import Base # YYYY-Www of an ISO year and week, as `date +%G-W%V` writes it def time.week.text(week: U32 & U32) -> String: (year, num) = week time.four(year) ++ SCon{'-', SCon{'W', time.two(num)}} Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=ezsys@0.1.0.0/src/clock.bend&name=time.four https://jend.leeeet.dev/definition.txt?path=ezsys@0.1.0.0/src/clock.bend&name=time.two