Clock.time.jan1: def of ezsys@0.1.0.0 Import: import ezsys@0.1.0.0/src/clock.bend as Clock Lines 313-319 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=313&end_line=319 import Base # the day number of 1 January of a year from 1970 on: Howard Hinnant's # days_from_civil for month 1, day 1 def time.jan1(year: U32) -> U32: +yr = (year - 1 : U32) +era = (yr / 400 : U32) +yoe = (yr - era * 400 : U32) (era * 146097 + yoe * 365 + yoe / 4 - yoe / 100 + 306 - 719468 : U32) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.div https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.mul https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.sub