The earth spins around. one side faces the sun, one side faces space. the side facing the sun, we call daytime. side facing away is cooler and is nighttime. a day on earth is 24 hours, that’s how long it takes the earth to fully rotate one time. hope this !