Check the computers time and display a messege

Ok , so i want my program to check the computers time and display a messege for example

If its 18:00

The program says "Good evening , did you have your dinner yet "

If its 9:00

The program says "Good Morning"

Topic archived. No new replies allowed.