Changing a backround picture with the time

ok i need help writing a code that will change a picture base upon the time.

i want to have a picture of the sun rising between the time 6am to 11 am

then from 12pm - 5 pm a pic of the ocean showing

from 6 pm - 10 pm- a pic of the sun setting…

then from 11pm- 5am a picture of the northern lights…

help please…

ohh yeah i have the time being called in a # from 1-24, = var = hour

idk if u can write if statments with a range of numbers . ex. if (hour > “range of time/#'s”) …

or have a shape in the backround and have it change as the time changes??/

any help would be greatly appreticated.!!

dave