Just watch :)
I used sine for the ocean, and used the hour to set the colour, and darkness of the background, and also used the hour for the darkness of the sun.