Planetary Astronomy: From Ancient Times to the Third Millenn