People have divided time into years based on?

The period of the Earth's revolution around the Sun, 365.2422 days