Goal: What should I do with my windows during the summer?

Which of the following methods is more reasonable for accomplishing this goal?
Once the sun goes down and the air cools, it's time to open them up and let some fresh air in.