The ancient Egyptians were the first to adopt a 365 days year calendar approximately equal to the solar year. They did so to know when the Nile would flood. The earliest version of the calendar dates back to around 3000 BC.