code: def _ephem_to_timezone(date, tzinfo):
      # utility from unreleased PyEphem 3.6.7.1
      Convert a PyEphem Date into a timezone aware python datetime"""
      seconds, microseconds = _ephem_convert_to_seconds_and_microseconds(date)
      date = dt.datetime.fromtimestamp(seconds, tzinfo)
      date = date.replace(microsecond=microseconds)
      return date
docs: Convert a PyEphem Date into a timezone aware python datetime