On and after the first day of May, 1867, eight hours of labor between the rising and the setting of the sun, in all mechanical trades, arts and employments, and other cases of labor and service by the day, except farm employments, shall constitute and be a legal day's work, where there is no special contract or agreement to the contrary.
820 ILCS 145/1