It all depends on what was intended when the category was created, though when most people use "Contemporary" to refer to when the book was written.
http://en.wikipedia.org/wiki/Contemporary_Literature
If you mean the setting then
Golf in the Year 2000 would be contemporary even though it was written in the 19th century.