 That came out in 1942, the movie Casablanca. This goes from back to 1931. Herman Hopfeld wrote As Time Goes By for the Broadway musical Everybody's Welcome, which opened on October 31st, 1931. In terms of popularity at the time, it was a modest hit. The song was reintroduced in the 1942 film Casablanca, where it was sung by Sam, portrayed by Dooley Wilson, who was a drummer. Mm-hmm.