Setting is the time and place in which the action takes place.
Time can be a date-March 12,1869, an era-Time of the Machines, or a general time-spring.
The setting can also give clues about the mood, or atmosphere, of the story.
From The Reader’s Handbook