At least a couple of hours. Buses start running at 6:30 (early character breakfasts start in the parks at 8:05) so if they are dropping guests off at the parks, I'm sure a ticket window is open.
Another option is to go to Downtown Disney the day or night before you want to visit a park and get your tickets at Guest Relations there.