The twenty-four-hour rule excludes travel time to the magistrate's court. In exceptional circumstances, preventive detention laws may apply, but they are subject to separate legal provisions.