def _calculate_solar_time(self, hour, eq_of_time, is_solar_time):
if is_solar_time:<EOL><INDENT>return hour<EOL><DEDENT>return (<EOL>(hour * <NUM_LIT> + eq_of_time + <NUM_LIT:4> * math.degrees(self._longitude) -<EOL><NUM_LIT> * self.time_zone) % <NUM_LIT>) / <NUM_LIT><EOL>
Calculate Solar time for an hour.