I don't know the history of the song, though I believe it's from the mid-1800's. I did read that the type of clock described in it started being referred to as a "grandfather clock" because of the song (I'm not sure what they were called before that).