yearstart

yearstart(d: date) 🡒 date, const pure function

Returns the first day of the Gregorian year associated to the date d.

show summary "" a1c2 with
  yearstart(date(2020, 1, 1))
  yearstart(date(2019, 5, 1))

yearstart(m: month) 🡒 date, const pure function

Returns the first day of the Gregorian year associated to the month m.

show summary "" a1c2 with
  yearstart(month(2022, 1))
  yearstart(month(2022, 12))

See also