Japt, 12 bytes
ÐKj +U*1e3 i
This transpiles to the following JS:
new Date(K.j() + U * 1e3).i()
where K.j() is the current time converted to milliseconds, U is the input, and .i() gets the year from the date constructor.
Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack ExchangeÐKj +U*1e3 i
This transpiles to the following JS:
new Date(K.j() + U * 1e3).i()
where K.j() is the current time converted to milliseconds, U is the input, and .i() gets the year from the date constructor.