At the last possible moment; at the last minute.
At the last possible moment; just before or within the assigned time.