How long is breast milk good for after you take it out of the refrigerator?

I know it can be left out for 5 hours after you pump but what about when it’s been in the fridge?