Skip to content
This repository was archived by the owner on Sep 12, 2025. It is now read-only.
This repository was archived by the owner on Sep 12, 2025. It is now read-only.

Midnight sun and polar night #16

@danhje

Description

@danhje

Hi Ernesto, great library!

It seems like midnight sun and polar night is not supported. Could you add support for that? I live in Norway, so a large portion of my user base have midnight sun of polar night a large portion of the year.

http://en.wikipedia.org/wiki/Midnight_sun
http://en.wikipedia.org/wiki/Polar_night

Seems like the simplest way is to check whether sunrise = sunset. If that is the case, the sun is not rising or setting that day. Then it should be easy to figure out which is the case. If winter, the sun is not rising. If summer, the sun is not setting. Not sure what values should be returned to indicate that a particular day has a midnight sun or is a polar night though.

Daniel

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