Circadian rhythms are fundamental to life. In mammals, these rhythms are generated by pacemaker neurons in the suprachiasmatic nucleus (SCN) of the hypothalamus. The SCN is remarkably consistent in structure and function between species, yet mammalian rest/activity patterns are extremely diverse, including diurnal, nocturnal, and crepuscular behaviors. Two mechanisms have been proposed to account for this diversity: (i) modulation of SCN output by downstream nuclei, and (ii) direct effects of light on activity. These two mechanisms are difficult to disentangle experimentally and their respective roles remain unknown. To address this, we developed a computational model to simulate the two mechanisms and their influence on temporal niche. In our model, SCN output is relayed via the subparaventricular zone (SPZ) to the dorsomedial hypothalamus (DMH), and thence to ventrolateral preoptic nuclei (VLPO) and lateral hypothalamus (LHA). Using this model, we generated rich phenotypes that closely resemble experimental data. Modulation of SCN output at the SPZ was found to generate a full spectrum of diurnal-to-nocturnal phenotypes. Intriguingly, we also uncovered a novel mechanism for crepuscular behavior: if DMH/VLPO and DMH/LHA projections act cooperatively, daily activity is unimodal, but if they act competitively, activity can become bimodal. In addition, we successfully reproduced diurnal/nocturnal switching in the rodent Octodon degu using coordinated inversions in both masking and circadian modulation. Finally, the model correctly predicted the SCN lesion phenotype in squirrel monkeys: loss of circadian rhythmicity and emergence of xe2x88xbc4-h sleep/wake cycles. In capturing these diverse phenotypes, the model provides a powerful new framework for understanding rest/activity patterns and relating them to underlying physiology. Given the ubiquitous effects of temporal organization on all aspects of animal behavior and physiology, this study sheds light on the physiological changes required to orchestrate adaptation to various temporal niches. 