It shall be unlawful for any person, association or corporation operating a railroad within this state to permit any person employed by it on such railroad, in the capacity of telephone or telegraph operator, whose duty it is to space or block trains or engines, or handle train orders governing the movement of trains or engines, or handle interlocking switches governing the movement of trains or engines, to be on duty more than eight hours in any twenty-four consecutive hours: Provided, That the provisions of this section shall apply only to such parts of a railroad where three or more passenger trains pass each way in twenty-four consecutive hours, or where ten or more freight trains pass each way in twenty-four consecutive hours, or at any office where such telegraph or telephone operators are employed twenty or more hours in twenty-four consecutive hours: Provided further, That in case of necessity caused by the sickness or death of any such operators, or by an accident on such railroad, such telephone and telegraph operators may be permitted to be on duty for a period of twelve consecutive hours in any twenty-four consecutive hours, but such extension of time shall extend only for a period long enough to enable such railroad company to supply the required number of operators at such office, and shall in no case extend over a period of more than two days, nor shall it be lawful for any such telegraph or telephone operator to be on duty twelve consecutive hours in any twenty-four consecutive hours for more than three times in any calendar month. Nothing in this section shall prevent any such company and operator from agreeing to a longer day than eight hours, but in no case shall any such operator be permitted to be on duty longer than twelve consecutive hours in any twenty-four consecutive hours under such agreement.
Any person, association or corporation violating the provisions of this section shall be guilty of a misdemeanor, and, upon conviction thereof, shall be fined $100 for the first offense, and for each subsequent offense shall be fined $300.