The last time Ajinkya Rahane played a T20 international for India was back in August 2016, against the West Indies in Lauderhill, Florida. He opened the batting with Rohit Sharma in India's chase of 144. He was unbeaten on 4 off 4 balls when the match was called off due to rain.
This was the second and final T20I of the series, which the Windies won 1-0 (having won the first game by 1 run). Rahane's attempt to prove that he can still be an effective T20 batter was cut short when the skies opened up over Lauderhill that day. He hasn't featured in an Indian T20I line up since then. MS Dhoni was still the India captain, Amit Mishra was part of the playing XI and Dwayne Bravo was still playing international cricket. Needless to say, this was a fair bit ago.