def Date.weekday
import bend-kit-time@0.3.0.0/time.bend as Timeimport Base
260# 1 for Monday to 7 for Sunday, as in ISO 8601.
261def Date.weekday(d: Date) -> U32:
262 ((Date.to_z(d) + 2) % 7 + 1 : U32)
import bend-kit-time@0.3.0.0/time.bend as Timeimport Base
260# 1 for Monday to 7 for Sunday, as in ISO 8601.
261def Date.weekday(d: Date) -> U32:
262 ((Date.to_z(d) + 2) % 7 + 1 : U32)