@squawk
    Preparing search index...

    Interface SolarTimes

    Sunrise, sunset, and civil twilight times for a given location and date.

    In polar regions, the sun may not rise or set on a given date. When an event does not occur, the corresponding property is omitted. Consumers should check for the presence of each property before using it.

    All times are in UTC.

    interface SolarTimes {
        civilTwilightBegin?: Date;
        civilTwilightEnd?: Date;
        sunrise?: Date;
        sunset?: Date;
    }
    Index

    Properties

    civilTwilightBegin?: Date

    Beginning of morning civil twilight in UTC. Omitted in extreme polar regions.

    civilTwilightEnd?: Date

    End of evening civil twilight in UTC. Omitted in extreme polar regions.

    sunrise?: Date

    Sunrise time in UTC. Omitted if the sun does not rise (polar night).

    sunset?: Date

    Sunset time in UTC. Omitted if the sun does not set (midnight sun).