Mental functions involved in the time spent in the state of sleep in the diurnal cycle or circadian rhythm.