Light is important in agriculture as it controls photoperiodism. This affects the growth and development of crops. Some plants require longer periods of light each day for flowering, like oats, and others require shorter days, like maize. Day length can affect the reproductive function of some livestock species as well. For example, long day lengths increases milk production and poultry grows best with shorter days but egg production is greater when days are longer. Some livestock mate during shorter days e.g sheep.