It appears God doesn't create a "sun" (v14-19) until after referencing the word "Day" (v1). I wonder how long a day is if there is no sun to rotate the earth.

Genesis 1:5 and Genesis 1:14-19