Day and night are caused by the Earth's rotation on its axis over 24 hours. Weeks consist of 7 days which are associated with the sun and visible objects in the night sky. Months are based on the moon's approximately 29.5 day revolution around Earth, though months contain 30-31 days. Years measure the 365.2422 days it takes Earth to orbit the sun, requiring a leap year every four years, except for centennial years which must be divisible by 400 to be a leap year.