Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for [old] Sun Angle by mozurin
"use strict";
function sunAngle(dayTime)
{
const angle = (
(dayTime.split(':').reduce((h, m) => h * 60 + m * 1) - 6 * 60) /
((18 - 6) * 60) * 180
);
return angle < 0 || angle > 180? "I don't see the sun!" : angle;
}
June 27, 2018