Which of the following controls flowering in a plant?

A amount of color pigment in the petals
B amount of night, or dark hours
C temperature of soil
D temperature of water