The best time for coding

Early morning, before the normal day starts, its easier to focus on whatever thing you want to. Of course, that is not enterely true if you had a bad night lacking sleep, and also may be not true for many people and for different reasons, but its been the best time for me, either to solve problems or to learn new things.