Skip to content

Distinguish between continuous darkness / daylight #13

Description

@susannahameyer

https://github.com/nathan-osman/go-sunrise/blob/master/sunrise.go#L26-L28

This currently returns Time{} for sunrise and sunset when either sunrise or sunset never occurs. Is there a way to represent if the sun never sets vs. never rises to know whether there's darkness or daylight?

Example using latitude 78.22240149999999, longitude 15.651782 for Svalbard.

DateTime: 2024-06-12T23:21:00Z
Sunrise: 0001-01-01 00:00:00 +0000 UTC
Sunset: 0001-01-01 00:00:00 +0000 UTC

DateTime: 2024-12-12T23:21:00Z
Sunrise: 0001-01-01 00:00:00 +0000 UTC
Sunset: 0001-01-01 00:00:00 +0000 UTC

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