Describe the sky you want — a conjunction, a Moon in the right sign, an hour ruled by Jupiter — and this runs forward from now until it finds the first moment all of it is true at once.
Positions are apparent geocentric longitudes in the tropical zodiac, computed from the JPL DE440s ephemeris.