This is tricky because even the briefest amount of light will make plants start growing again and put off flowering. Therefore, it needs to be a complete, uninterrupted darkness. Marijuana plants are happiest when they get between 5-6 hours of direct sunlight per day.
.