He it is, Who appointed the sun as a splendid glow, and the moon as a cool light. He appointed stages for the moon, in due measure. You make your calculations and calendars accordingly (6:97), (17:12). Allah has created the Universe as the Absolute Reality and for a Purpose. (It is neither a dream, nor a reflection of the world of ideas). Allah details His Verses for those who wish to learn.