Except stopping for meal and bathroom breaks, I can keep driving from 4am to midnight. Distance would depend on the speed.
Only thing is watch out for your "biological clock". I find that from 1am to 4am my body wants to shut down from driving.