<P> Herman Hupfeld wrote "As Time Goes By" for the 1931 Broadway musical Everybody's Welcome . In the original show, it was sung by Frances Williams . It was recorded that year by several artists, it was sung by Rudy Vallée and Binnie Hale, and orchestra recordings were made by Jacques Renard and Fred Rich . In terms of popularity at the time, it was a modest hit . Elisabeth Welch included it in her cabaret act as soon as it was released . </P> <P> The song was re-introduced in 1942 in the film Casablanca . It was sung by Sam (Dooley Wilson); Sam's piano accompaniment was played by pianist Elliot Carpenter . The song is heard throughout the film as a leitmotif . Wilson was unable to record his version of the song at the time due to the 1942--44 musicians' strike, so Brunswick reissued the Jacques Renard 1931 recording, and Victor re-issued Vallée's 1931 recording, giving Vallée a number - one hit in 1942 . </P> <P> Hupfeld lived his whole life in Montclair, New Jersey, and was a regular customer at the Robin Hood Inn, a tavern built in 1922 on Valley Road, then part of Upper Montclair . He spent many hours at the piano and wrote several of his songs in this tavern, now the Valley Regency . A plaque on the second floor of the Valley Regency Catering Facility in Clifton, New Jersey, commemorates the song . He wrote over one hundred songs, including "Let's Put Out the Lights and Go to Sleep," and the popular Great Depression song "Are You Making Any Money?" (Nancy Sinatra included her rendition of this song in her 2013 album "Shifting Gears".) (Mexican pop singer Yuri recorded a spanish version as "Decir Adiós" in her album "Obesesiones".) </P> <P> The original song in the film as sung and played by "Sam" was recorded in D - flat major, but it has since been played in several keys, commonly C major, but also B - flat major, as in Frank Sinatra's recording, and others keys including A major and E-flat major, the key in which the song was orginally published . </P>

What does the song as time goes by mean