Astronomical time switches