Using real-time gene expression imaging and behavioral analysis, we found that the perinatal photoperiod has lasting effects on the circadian rhythms expressed by clock neurons as well as on mouse behavior, and sets the responsiveness of the biological clock to subsequent changes in photoperiod. These developmental gene × environment interactions tune circadian clock responses to subsequent seasonal photoperiods and may contribute to the influence of season on neurobehavioral disorders in humans.