Let d(t) be the shortest distance between Earth and the nearest other planet as a function of time t

(where t is in years and t = 0 is noon on January 1, 1000 A.D., say). Is d continuous? Why or why not?