Mickey is too Quick!
GT2 next time you better say in which direction you need to go to achieve your goal instead of asking for solution.
If you hit on a problem you better break it down into small pieces. This way it will make things clear.
Let’s say that there’s something that you need to get done. Something challenging which will take up some time, like learning a new programming language, writing a game demo, starting a company, invading Poland, etc.
First, what is it that you’re wanting to do? Try and be as specific as you can. Write it down as if you were writing an email to ask someone else to do it. Break the high level goal down into some of the main stages.
In your case, you need to determine the current time first. After that you need to try to define which part of the day is the current time (morning, afternoon, evening). After that output what you wanted to show.
Break your problem down in small pieces and think about what you need to make it work. This way makes programming much easier. (Just a tip).