One critic claimed that we could use this passage to find the distance of the sun and moon to the earth. He claimed that this verse tells us that the sun was lighting Gibeon and the moon was needed to light Ajalon. The passage however, is only indicating the relative position of the sun and moon in the sky, their is nothing said about their illumination or reference to their light. The Bible writers described direction from the location where they were standing to a landmark or location in the direction they wanted to indicate. The sun was somewhere overhead Gibeon and the moon was in the eastern sky over the valley of Ajalon. The critics also have this problem when Moses writes about the
sun setting in the land of the Canaanites. Next time the sun is setting in your neighborhood, check to see if it is setting in the direction of a nearby town, or city? I'll bet it will be.
A related problem is that the passage seems to indicate that the sun and moon orbit the earth, because Joshua asks God to stop the sun and the moon. This is actually more of the same type of problem as discussed above. Joshua probably did not know anything about the nature of the sun, and neither would most of the critics if they hadn't been taught it in school or read it in a book. Think about this, how far is the earth from the sun? Did you measure that distance yourself, or did you read it in a book, learn it in school. Are you sure of that figure? Did you verify it? Would you verify it by looking it up on the Internet? If you have actually measured the distance from the earth to the sun, think about all the other things you "know" from other sources. Things that you take on faith, but have never verified. Joshua wanted more time in the day, the logical solution, from his point of view is to have the sun stop. He didn't have to understand the mechanics.