Which is currect- a ear an year,
Biji, Welcome to Grammar Monster. I suspect you're not a native English speaker. Both of your examples are incorrect.