In the case of property acquired by a corporation, during a period of affiliation, from a corporation with which it was affiliated, the basis of such property, after such period of affiliation, shall be determined, in accordance with regulations prescribed by the Secretary, without regard to inter-company transactions in respect of which gain or loss was not recognized. For purposes of this section, the term “period of affiliation” means the period during which such corporations were affiliated (determined in accordance with the law applicable thereto) but does not include any taxable year beginning on or after January 1, 1922, unless a consolidated return was made, nor any taxable year after the taxable year 1928.