The plant itself grows during the day, but produces resin in the dark. As far as I know! I haven't studied it closely really... so take it for what it's worth..

If you want to know when to harvest, it's after a dark period, as strong light does break down THC.