Skip to content

Moonset if Hour is 0 then it should be the next day #6

Description

@DragonflyNet67

First of all thank you for this cool and short routine to determine sun and moon data. I noticed, that the moon-set date remains on the same day if it is after midnight. I think the date should be one day later (add 1 day to date). I added following to the getMoonTimes method almost at the end (where if (sett): is):
def getMoonTimes(date, lat, lng):

   if (sett):

       if int(sett) == 0:

           sett +=24

   result["set"] = hoursLater(t, sett)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions