A little bit later. It was a demand of various labor movements starting in about the mid-1800s (essentially in response to the industrial revolution) and started to be broadly implemented around the turn of the century.
I would have thought working hours were much higher back then?