year

year(d: date) 🡒 number, pure function

Returns the year in the Gregorian calendar associated to the date d.

Example:

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

See also