nowhere near long enough to be a problem for an (unopened) freezer.
I was rather surprised at how short the time can be, I was in the kitchen when I heard a freezer fail, lucky I had a spare in the garage used for brewing beer, so turned this on and waited ½ hour to allow it to cool, the contents then swapped between the two, the upper 6 inches to foot had already defrosted. Food lower down was OK, I would assume it had just finished the defrost cycle when it failed, and it was on restart it failed, however this pointed out to me it does depend on when the last defrost was completed as to how long a freezer will last.
My modern upright freezer actually displays the maximum temperature reached during a power cut, until a door is opened, but back in 1978/9 don't remember frost free upright freezers, and we did know when the power was going off. The biggest problem was loss of the central heating, which at that time was hot air type gas powered, so there was not even a hot radiator to keep the room warm, and windows at that time single glazed top to bottom front and rear of room, so cooled down very fast.
This house far better, central heating drops from 20ºC to 16ºC at midnight, and it is rare for it to kick in before it returns to 20ºC in the morning. But double glazed not single as it was back then.
If I was to loose power between sun down and midnight then the house would cool down, as battery would be unlikely to last the night, but by 2:30 am it would be charged again, and likely would last until sun up, and since not powering kettles etc once power has failed, there would not be a problem most days with a power cut.
However since what the labour party did, I have not trusted having an electric supply, once bitten twice shy, so have ensured I do have either a gas fire or solid fuel fire, and heat pumps are a non starter.