Confused about how long it will last

My sons baptism is tm and I want to pump so that he can have a bottle ready in case he is hungry. I'm working all day tomorrow so when I get home we will have to leave. If I pump in the morning and refrigerate it, how long outside of the fridge will it last? Should I warm it before we leave??