Scientists say they have uncovered the key to the mechanism by which changes in the length of the day prompt certain animals to begin breeding, trigger the growth of horns and even change the thickness of their coat.