Basic Concepts
Date And Time
Documentation for Date And Time
Date and Time
The positions of the Sun, Moon, planets, and stars change over the course of days, months, and years. Thus the units we use to mark the passage of time are intimately tied to astronomy. A day is (roughly) the length of time the Earth takes to turn on its axis, i.e. for the Sun to return to the same position in the sky. A month is (roughly) the time the Moon takes to orbit the Earth, i.e. to return to the same position relative to the Sun. A year is (roughly) the length of time the Earth takes to orbit the Sun, i.e. for the Sun to return to the same position among the stars.