I have a theory which most people are not going to like but I have been acused of dismissing the theory of evolution without even considering the possibility that it might have some truth in it. So before you rubbish it consider it as an alternative to what you have already considered.
I am going to quote from the Bible in Genesis Ch 1 v14 - 19
"And God said, "Let there be lights in the expanse of the sky to separate the day from the night, and let them serve as signs to mark seasons and days and years, 15 and let them be lights in the expanse of the sky to give light on the earth." And it was so. 16 God made two great lights—the greater light to govern the day and the lesser light to govern the night. He also made the stars. 17 God set them in the expanse of the sky to give light on the earth, 18 to govern the day and the night, and to separate light from darkness. And God saw that it was good. 19 And there was evening, and there was morning—the fourth day."
Bear in mind that the writing of this can be traced back several thousand years BC.