Before 1883, most American towns set their clocks by local solar noon, the moment the sun stood highest in the sky. Because solar noon arrives slightly later the farther west one travels, noon in one town might fall several minutes before noon in a town just to its west. For railroads, which ran trains through hundreds of such towns, the result was a confusing patchwork of schedules. On November 18, 1883, the major railroads adopted a system of four standard time zones. Many cities quickly followed, finding it convenient to match the trains. Others resisted for years. Some local officials objected that the railroads, as private companies, had no authority to decide what time it was, insisting that only a government could set official time. Some residents, meanwhile, complained that under the new system the sun no longer stood highest in the sky at noon. Congress did not write the zones into law until 1918.