Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

day off by one? #41

Open
risacher opened this issue Apr 13, 2023 · 1 comment
Open

day off by one? #41

risacher opened this issue Apr 13, 2023 · 1 comment

Comments

@risacher
Copy link
Owner

Donald Fore says:

Hi Dan,

I think your "day" calculation is 1 day off.
' compensated for it in a quick little script using day+1.

Very nice program!

Investigate this

@kchiem
Copy link

kchiem commented Nov 21, 2023

This does seem to be the case:

$ sunwait report 37.000N 122.000W

      Current Date and Time: 20-Nov-2023 19:34 PST


Target Information ...

                   Location:  37.000000N, 238.000000E
                       Date: 19-Nov-2023
                   Timezone: PST
   Sun directly north/south: 11:53
             Twilight angle: -0.83 degrees (daylight)
          Day with twilight: 06:48 to 16:57
                      It is: Night

General Information (no offset) ...

 Times ...         Daylight: 06:48 to 16:57
        with Civil twilight: 06:22 to 17:24
     with Nautical twilight: 05:50 to 17:55
 with Astronomical twilight: 05:19 to 18:26

 Duration ...    Day length: 10:09 hours
        with civil twilight: 11:02 hours
     with nautical twilight: 12:05 hours
 with astronomical twilight: 13:06 hours

Notice that the Date: and the current date/time differ. This happens when a date specification is supplied as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants