So, attempting to interpret Biblical Creation as being specific solely to mankind, on Earth, doesn't quite hold up to either a literal or allegorical reading. The truth of God, even presented as allegory, is not ever going to prove ultimately to be a lie.
The Hebrew word “Yom” has some designations that are not at all indicative or exclusive to a meaning of a 24 hour period.
But then, you might have have to read a bit (or a whole lot) more in order to grasp that concept.