What did the author mean in his own historical setting?
Genesis was originally written for the Hebrews of Moses’ time who were still tempted to worship the multiple gods and idols of their pagan neighbors. The important message was not how or when God created the universe, or how long it took him to do it; people of that era did not know or care anything about science.