Trigger based on time of day

Is there now or could there be a way to trigger an effect based on the time?