hammerspoon2-docs
    Preparing search index...

    Function sunrise

    • Returns the time of sunrise for the given coordinates and date, or null if the sun does not rise on that date (polar night).

      Parameters

      • latitude: number

        degrees north (positive) or south (negative)

      • longitude: number

        degrees east (positive) or west (negative)

      • date: Date | null

        the date to calculate for; pass null or omit to use today

      Returns Date | null

      A Date object representing the time of sunrise, or null