My vitamin d level is 9, I am in the middle east and wear head scarf, for how long do I need to sit under the sun and what is the time?

Long time. We figure 20-30 minutes of "full body" - read bikini or "birthday suit" exposure for adequate skin conversion in the central il mid summer sun. If only a small portion of skin is exposed it will take quite a while. I would suggest adding in a vit d3 supplement to augment the sun and keep your measured level above 50 for all the health benefits vit d provides!