From this article.
Many ancient civilizations had a rough approximation of the passage of time. Obviously, a day began when the sun rose and night began when the sun set. Somewhat less obvious was the passage of weeks, months, and years; however, these too had been approximated by ancient peoples. A month was the length of time of one complete lunar cycle, whereas a week was the length of time for one phase of the lunar cycle. A year could be estimated based on the changing seasons and relative position of the sun. Once the zenith of the sun was determined, scholars could count the number of sunrises/sunsets that passed until it reached its zenith again. In this manner, the ancient Egyptians, Mayans, and Babylonians, among others, determined that the year had 360 days.