The solar calendar originated with Julius Caesar in 46 B.C.E., but it was based on a solar year of 365 days and 6 hours. To take care of the discrepancy between the 5 hours, 48 minutes, and 46 seconds and the 6 hours, one day was added every four years (creating a leap year).