Question: when was the song as time goes by written
Answer: `` As Time Goes By '' is a song written by Herman Hupfeld in 1931 .