Giving a reference depending on the time