Skip to content

Sunrise after sunset for NZ coordinates #13

@tomaszstos

Description

@tomaszstos

The following code prints sunrise at 2020-02-17 19:55:00+00:00 and sunset at 2020-02-17 08:40:00+00:00.

sun = Sun(-21.1814185045857, 149.151316322525)
dt = datetime.fromtimestamp(1581932515)
print(sun.get_sunrise_time(dt))
print(sun.get_sunset_time(dt))

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