Weeks. Could do a couple of months. I've got big stores of flour, oil, pasta, rice, oats, sugar, dried beans and fruit, dried veg that I do in the dehydrator, home made jam, chutney, pickle, fruit syrups and wine, uht milk, dried milk, herbs, spices, garlic and ginger paste, vinegar, tinned fish, tinned tomatoes.
That's not counting the allotment where I've got green beans, tomatoes, squash, onions, potatoes, plums and what's left of the blackcurrants (2 bushes full).
When they're all ripe they'll be dried or cooked and stored, or frozen. And some eaten fresh obviously!