Mechanisms of transcriptional regulation underlying temporal integration of signals