While the specific time period is not explicitly stated, it is inferred to be in the late 19th century based on the story's themes and language.
Hadleyburg is presented as a small, seemingly idyllic town with a reputation for being exceptionally virtuous and honest. This "perfection" is ironically what sets the stage for the corrupting influence that the story explores.