isoYear

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

Return the ISO year as defined by the lead week calendar part of the ISO 8601 date and time standard.

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

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

Return the ISO year as defined by the lead week calendar part of the ISO 8601 date and time standard.

show summary "" a1a3 with
  isoYear(week(2019, 3))
  isoYear(week(2019, 15))
  isoYear(week(2020, 1))