def sunrise(self,when=None):
        if when is None : when = datetime.now(tz=LocalTimezone())
        self.__preptime(when)
        self.__calc()
        t = Sun.__timefromdecimalday(self.sunrise_t)
        return when.replace(hour=t.hour,minute=t.minute,second=t.second)
return the time of sunrise as a datetime.time object
dataset/ETHPy150Open smhg/sublime-suncycle/sun.py/Sun.sunrise