Humans have understood how to calculate the length of a day pretty accurately for a long time. But there wasn’t a standard way to approach time on a global scale until the late 19th century, and happened because of railroads.
Research:

The Many Meanings of the Bunker Hill Monument
45:48

SYMHC Classics: Four Paperclippers
36:24

Behind the Scenes Minis: Pacts and Facts
25:06