In the EU that's a few days or weeks. As if in the movies that time were just skipped.
And doesn't contradict too much how it's shown in the movies, if it seems like more than an hour or two before they jump to hyperspace, and in hyperspace there's enough time for lightsaber training, then maybe it's a few days.