Anecdotally, whenever I go swimming with my kids in the summer, and I don't put sunscreen on right away, but let myself get some intense direct sun, I feel good and sleep really well that night.
As long as I don't let myself get in a red, sunburn situation.
Most likely that’s the nitric oxide (not to be confused with nitrous oxide) that is a biproduct of vitamin d synthesis which requires UV light. It is a natural muscle relaxer and is generally considered good for blood pressure and heart health in general.
I can spend a solid hour in the sun before I start to burn, assuming I have a hat on my head.
I've also noticed some correlation between my diet and how fast I burn. Whenever my metabolism is running at/near ketogenesis, it seems like it takes a lot longer for the sun to affect me.
I typically do the same thing. I only wear sunscreen if I am planning on being in direct sun for an extended period of time where I can't easily get back in the shade.
The more you're able to build up a base tan the less you need it to avoid a burn at least.
The number one reason I wear an Apple Watch all summer is the UV index complication. If the number is at 4 and trending down I let the kids run free.