He wrote the poem in 1861.
I know and ever kid in this country had to read it for years, but I bet that they do not anymore. But the date he wrote it is of no importance, it is a work of art.