(b)when in irons, he may be attached for a period or periods not exceeding two hours in any one day to a fixed object, but he must not be so attached during more than three out of any four consecutive days nor during more than twenty-one days in all.