def Date.weekday

bend-kit-time@0.3.0.0 · time.bend:260

import bend-kit-time@0.3.0.0/time.bend as Time
import 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)

Uses (5)

Used by (2)