Specific time periods throughout the lifespan when exposures to environmental factors may directly or indirectly affect the risk of developing a disease.