We’ve tracked time locally since at least the ancient Greeks and likely earlier.
Greenwich Mean Time was created around 1850. The modern timezone system started around the same time as railroads allowed people to move faster and basing times on “local noon” became problematic. This was done initially on a country by country basis.
By 1930 most countries had adopted the standard timezones based on an offset from GMT.
Latest Answers