...

weekNum

weekNum(d: date) 🡒 number, const pure function

Returns the week of the year (1-53) for the date passed as argument. Weeks start on Mondays.

show summary "" a1a3 with
  weekNum(date(2019, 12, 28))
  weekNum(date(2019, 12, 31))
  weekNum(date(2020, 1, 1))

weekNum(w: week) 🡒 number, const pure function

Returns the week of the year (1-53) for the week passed as argument.

show summary "" a1a3 with
  weekNum(week(2019, 5))
  weekNum(week(2019, 52))
  weekNum(week(2020, 1))

See also

User Contributed Notes
0 notes + add a note