Just 15 to 20 minutes with your limbs exposed will keep your vitamin D at adequate levels, which is important for your overall health. While you want to spend time in the sun, avoid extreme heat, which, in contrast, is quite dangerous for your heart.