The year is never mentioned but it is said to be over 300 years from the alien invasion which was in 2009, when the machines made contact with Earth and invaded five years later and conqured Earth within a few hours, forcing the humans underground and changing the atmostphere into constant darkness with constant rain.