Setting is everything surroundig your characters, which country, town or countryside, situation if life e.g. rich or poor.
Time of setting: when does the story take place? Now, past, future, or unknown (fantasy)
Time: how long does the story take, a year, two months, one day, one hour