sunrise.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:FlipDotWorker 作者: ArduinoHannover 项目源码 文件源码
def sunrise(self,when=None):
  """
  return the time of sunrise as a datetime.time object
  when is a datetime.datetime object. If none is given
  a local time zone is assumed (including daylight saving
  if present)
  """
  if when is None : when = datetime.now(tz=LocalTimezone())
  self.__preptime(when)
  self.__calc()
  return sun.__timefromdecimalday(self.sunrise_t)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号