For is.fy
, a logical, whether its argument is a financial year.
The following forms are allowed: 2012-13
, 201213
, 2012 13
, only.
For fy.year
, yr2fy
, and date2fy
, the financial year.
For the inverses, a numeric corresponding to the year.
fy.year
is a deprecated alias for yr2fy
, the latter is slightly more efficient, as well as more declarative.
fy2yr
converts a financial year to the year ending: fy2yr("2016-17")
returns 2017. yr2fy
is the inverse: yr2fy(fy2yr("2016-17")) == "2016-17"
.
fy2date
converts a financial year to the 30 June of the financial year ending.
date2fy
converts a date to the corresponding financial year.