Depends on the airline.
I want to book a flight on SIN for right after shabbos. Shabbos ends at 6 flight is at 8:15 plus I need some time to get to the airport...