Creating a Time of Day handler