IFClite TypeScript API
    Preparing search index...

    Interface SunTimes

    interface SunTimes {
        alwaysDown: boolean;
        alwaysUp: boolean;
        solarNoon: Date;
        sunrise: Date | null;
        sunset: Date | null;
    }
    Index
    alwaysDown: boolean

    True if the sun is below the horizon for the whole UTC day.

    alwaysUp: boolean

    True if the sun is above the horizon for the whole UTC day.

    solarNoon: Date

    Solar noon (sun crosses the local meridian). Always defined.

    sunrise: Date | null

    Sunrise instant, or null if the sun never rises that day (polar night).

    sunset: Date | null

    Sunset instant, or null if the sun never sets that day (midnight sun).