find_closest_year function

Find closest year

Find closest year

This function takes a date as input and returns the closest year.

find_closest_year(date)

Arguments

  • date: [character(1)]

    The date in format "YYYY-MM-DD".

Returns

An integer, the closest year to the input date.

  • Maintainer: Lennart Oelschläger
  • License: GPL-3
  • Last published: 2025-03-24