<Table> <Tr> <Th_colspan="2"> "The Pit and the Pendulum" </Th> </Tr> <Tr> <Td_colspan="2"> </Td> </Tr> <Tr> <Th> Author </Th> <Td> Edgar Allan Poe </Td> </Tr> <Tr> <Th> Country </Th> <Td> United States </Td> </Tr> <Tr> <Th> Language </Th> <Td> English </Td> </Tr> <Tr> <Th> Genre (s) </Th> <Td> Horror Short story </Td> </Tr> <Tr> <Th> Published in </Th> <Td> The Gift: A Christmas and New Year's Present for 1843 </Td> </Tr> <Tr> <Th> Publication type </Th> <Td> Periodical </Td> </Tr> <Tr> <Th> Publisher </Th> <Td> Carey & Hart </Td> </Tr> <Tr> <Th> Media type </Th> <Td> Print </Td> </Tr> <Tr> <Th> Publication date </Th> <Td> 1842 </Td> </Tr> </Table> <Tr> <Th_colspan="2"> "The Pit and the Pendulum" </Th> </Tr>

When was the pit and the pendulum written
find me the text answering this question