Time! from Rotation of Light

Hello and i am making a game with a day/night cycle i have got that working but i want a script that would tell me on the gui text what the time of the game was by angle of the directional light please help

Every degree of the sun is worth 4 minutes (assuming the sun only goes from 0 - 180) So if you get the elevation of the sun just multiply by 4 then divide by 60 for your hours.

So for instance if your sun is 45 degrees up it will be (45 * 4 = 180 / 60 = 3)

Now its up to you where you start your sunup time from just add 4 or 5 to the output number to start the sunrise and it will show 7 or 8