I think that the meaning is about enjoying life. We like to be outdoors in a sunny day. The fresh air, blue sky, and warm sun make us feel good. That is the literal meaning. "Time in the sun" is a metaphor for being in a good place, when you are happy, when life is going well, when people appreciate you and recognize your worth as a person.