Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SolarCalculator

Hierarchy

Index

Properties

day

day: number

The day of the month to get the sunrise/sunset for.

Protected fetchState

fetchState: number = 0

latitude

latitude: number

The latitude to calculate the sunrise/sunset for (in degrees).

longitude

longitude: number

The longitude to calculate the sunrise/sunset for (in degrees).

month

month: number

The month to get the sunset/sunrise for. January - 1 to December - 12.

noon

noon: string

Solar noon in the same timezone as the intput.

sunrise

sunrise: string

Sunrise in the same timezone as the input.

sunset

sunset: string

Sunset in the same timezone as the input.

timezone

timezone: number

The timezone index to format the returned forecast times in. Must be from the list obtained from Timezone::getTimezoneNameList().

year

year: number

The year to get the sunset/sunrise for. Must be after 1600.

Static Private Readonly CALCULATE_SOLAR_KEY

CALCULATE_SOLAR_KEY: string = "SOLAR_CALCULATOR"

Methods

fetchSolar

Private fetchSolarInternal

fetchSolarPromise

  • Get the sunrise, sunset and solar noon.

    throws

    This method can only be called once at a time per instance.

    Returns Promise<SolarCalculator>

    The current SolarCalculator object with the results of the solar calculation populated.