MDL-18375 calendar: changed the minimum and maximum year for the Gregorian calendar
MDL-18375 calendar: changed the name of the function factory() to be more descriptive