monday

monday, function

def const pure monday(d: date): date

Returns the first Monday preceding the input date (inclusive).

Example

show summary "" a1a3 with
  monday(date(2019, 12, 28))
  monday(date(2019, 12, 30))
  monday(date(2020, 1, 1))

See also

User Contributed Notes
0 notes + add a note