Apple's patent describes a system where UV light sensors detect sunlight and track exposure over time.