Andy Weir wrote The Martian
[Human]: Do you know any other books written by Andy Weir? [Assistant]: Andy Weir wrote The Martian and The Egg. [Human]: I haven't heard of that one, but are there any others you recommend? [Assistant]: He also wrote the novel Artemis, and several short stories, including Yuri Gagarin Saves the Galaxy and Rat.  [Human]: And when was this book written? 
It was written in 2017. It takes place in the future, in the only city on the moon.