The Egyptians were the first to move from measuring time by the moon, to by the sun, which made eleven more days in the year. It was the Romans developed the calendar. Julius Caesar, in fact, in 45 BC.
His calendar didn't stay in use because we all changed to the Gregorian calendar in 1582 thanks to Pope Gregory XIII It was a refinement of Caesar's calendar