Did Genesis 2 occur all in one day? A comment to this answer prompted this question. Was Adam created, naming the animals, and married in one day, or did these events take place in a larger time span?
Short answer: A literal reading of the text would indicate that yes, Adam was created, named the animal, and married all in one day.

Gen 1:1-2:6 gives an overview of the creation of the world. Gen 2:7-25 then goes back and gives additional detail about the creation of Adam and Eve. (There's nothing odd about this, it's a common enough literary technique: first give an overview, then go back and give details about the part you're most interested in.)

Gen 1:26-27 says that God created humans on the sixth day. It specifically says male and female. Gen 2:7 describes the creation of Adam and 2:21-22 describes the creation of Eve. So the plain reading is that 2:7, 2:22, and everything in between therefore happenned on one day.

I don't see any difficulty in supposing that Adam and Eve were both created and married to each other in one day. It's not like they had a lot of choice about potential marriage partners.

Perhaps you struggle with how Adam could have named all the animals in one day? That depends how many animals he named. You often hear how there are millions of species in the world. But the vast majority of those are microscopic, most of the rest are insects or arachnids, and a hefty percentage are sea creatures. The text says Adam named cattle, birds and "every beast of the field". There's no mention of Adam naming fish, insects, or microscopic creatures. If you just count mammals, reptiles, birds, and amphibians, there are about 30,000 species. Genesis does not spell out how broad or narrow the categories where that he named, and species is pretty narrow. Like did Adam name "dogs" (in whatever language he spoke, of course, not English), or did he name every individual breed? Or for that matter did he just give a name to the broader family that includes dogs, wolves, etc? Realistically, Adam probably named a few thousand animals, maybe as little as a few hundred. If he just went down the line and said, "Okay, I'll call that a 'dog', that's a 'cat', that's a 'moose' ..." etc. he could have named each one in a second or two. At 3 seconds per animal he could name 20 per minute, 1200 per hour, 9600 in an 8-hour working day. Okay, I doubt he kept up a rapid-fire pace of naming for 8 straight hours, but he could have named several thousand animals in a day.

If you want to take the story symbolically or allegorically, then the whole question becomes moot. If it's all just a symbolic story and none of it really happenned, then it's meaningless to talk about how long it took.