ASV notes on Genesis 1:1-5
There is only one God, And His name is YHWH, and at the time of Moses the only vowel that existed in the Hebrew alphabet was an a, so the name of God is YAHAWAH, and He is the only God and He always works together with His son, and His spirit.
Moses wrote the first five books of the Bible, and here in the first verse Moses uses the word Elohim for God, it is plural suggesting that the creation was done by all three, the Father, the Son and The Holy Spirit. Elohim is not necessarily the only God, but in this case it is, spelling Elohim with the capital letter E. But generally elohim expresses what governs, if money governs our life, money is our elohim.
God created from nothing the heavens and the earth, first it was just a hunk of raw material, deep water and the darkness was cowering over it all, nothing was to be seen, but God and the Word was ready, and the Spirit was hovering over the waters. Then God started it all by creating the light, so all could be seen by Him and by all His armies of angles. The light made it all to be watched and witnessed what was going on.
God used the Word, Jesus, to create everything (John 1:3, Hebrews 1:2, and 11:3), that’s why God said “Let there be light”, now God could see and examine the light, what it did, it lit up the creation to be seen, and God saw that it did what it was supposed to do, and God concluded that it was good.
Before the light came, the darkness ruled, but when the light came God made it rule the day and the night. And then there was evening and morning the first day. The darkness was there, the light was created, the evening and the morning became reality and we had the first day. God created the light, the night and the day, but at that point in creation there were no sun, no moon and no stars. The light, the day and night do not depend on the sun going down and coming up.
Our feeling of time is linked to the sun going up and down, in fact the sun is not going up and down, it is standing still, not moving at all.
It is the earth that is spinning around itself in one day and going around the sun in one year. This spinning and moving of the earth are giving us the timing of days, weeks, months, springtime, summer, autumn and winter. All this timing God created without the sun, God does not need anything physical to create things. It is the other way around, all the physical need the none-physical to be created. What we cannot see makes what we can see (Hebrew 11:3).