The regulation of gene activity and expression over time and in response to environmental conditions.