The retina has many light-sensitive cells, i.e., these cells sense light and send signals to the brain to convey if it is day-time or night-time. The light bulb in your room emits rays, which are quickly absorbed by the light-sensitive retina cells. The cells then send signals to the brain, that convey the time of the day.