At what point in the construction can an Owner obtain a temporary Certificate of Occupancy?

At what point in the construction can an Owner obtain a temporary Certificate of Occupancy?