While the British railway is usually credited with first implementing time zones, Constantine I and the Roman Empire had attempted a solution to the problem in 331 A.D. by mandating that all sundials east of Rome be offset forward by "half of half of half of half of a circle" or 22.5 degrees, which equates to approximately 90 minutes.