In the outdoors, using only the natural sunlight, it will take about 4 months to begin the budding process. Indoors, budding can begin in 2 months. Seek the Hemperor's book(s). Access the related link below for more information:
for indoor grows, they start flowering shortly after they have been switched from an 18/6 light cycle to an 12/12 light cycle. This happens because the lighting simulates the oncoming of winter...
The cannabis plant begins flowering when it senses the light cycle is beginning to have more darkness and less sunlight and begins budding to pass on its seed since they know there going to die...