SDK JS
    Preparing search index...
    • Resolve a preset button to the local solar minute-of-day it should jump to.

      Parameters

      • name: PresetName

        Which preset; see PresetName.

      • times: SolarTimes

        The day's solar event instants (Atmosphere's SolarTimes).

      • lng: number

        Longitude in degrees the solar time is referenced to.

      Returns number | null

      The local solar minute-of-day in [0, 1440), or null if that event does not occur on the given day (e.g. no sunrise in polar summer) — used to disable the button.