I read if you have at least 31 days during the current year and 183 days during the 3year period you meet the test, but which year is the current year when file for 2021

So now in 2022 I’m filing for 2021, In the website of irs it’s said  31 days during the current year, but does that mean the year 2022 or 2021?
Thank you