Arcana Coelestia #5300
5300. 'For the seven years of famine' means as need arises when there is an absence [of truth]. This is clear from the meaning of 'famine' as an absence of truth, dealt with above in 5277, 5278. The fact that the time when truth is absent is a time of need is self-evident; for in the internal sense 'years' are states, as has frequently been shown above, and therefore 'for those [seven] years' means for those states when need arises.
Arcana Coelestia #5277
5277. 'And seven years of famine will arise after them' means subsequent states when there will be an absence of truth. This is clear from the meaning of 'years' as states, dealt with in 482, 487, 488, 493, 893; from the meaning of 'famine' as an absence of religious knowledge or cognitions. dealt with in 1460, 9364; and from the meaning of 'after them' as subsequent ones.