To force the cannabis plant into flowering it needs a dark period of at least 12 hours per day. If it receives any light during this time the flowering process will be disturbed. It can even revert back into the vegetative stage.
Learn all about growing and lighting:
More lighting related terms: