Any police officer or deputy sheriff in any industrial community may confine in such prison or building as the president, treasurer or other executive officer having the management of any industrial corporation may provide in any such community any person who may be arrested charged with violation of law until such arrested person can be conveniently carried before a magistrate; provided, however, that:
(1) Such police officer or deputy sheriff shall not detain any arrested person in such prison longer than eighteen hours, except a person arrested on Saturday and then not over forty-two hours; and(2) Such police officer or deputy sheriff shall provide water and food and shall also furnish such arrested person with sufficient bedding or clothing to make him comfortable in cold weather.1910 (26) 765; Cr. C. '12 Section 14; Cr. P. '22 Section 13; 1932 Code Section 920; 1942 Code Section 920; 1952 Code Section 17-261; 1962 Code Section 17-261.