As the earth revolves around the sun, there are periods of light and dark. Divided over 24 hours, when we experience daytime and nighttime depends on the time of the year as the earth’s axis tilts at varying degrees.