Photoperiodism is responsible for detecting the time of day or year so that plants can modify their physiology accordingly.