For safe travel, it is advisable not to travel when it is dark to the extent possible.
There are less people outside when it is dark, who may be able to help if there is a problem.
Also if you are feeling sleepy, you are less likely to be alert and aware of your surroundings.