@mangar2/sun

1.0.1 • Public • Published

Abstract

Default Zenith

Contents

Meta

Global functions

sunrise

sunrise (longitude, latitude, date, zenith) => {Date}

Calculates sunrise

sunrise Parameters

Name Type Attribute Default Description
longitude number longitude of position to calculate
latitude number longitude of position to calculate
date Date optional today date for sunrise/sunset
zenith number optional 90°50 ( official : 90°50' , civil : 96 , nautical : 102 , astronomical : 108 )

sunrise returns

Type Description
Date date/time of sunrise

sunset

sunset (longitude, latitude, date, zenith) => {Date}

Calculates sunset

sunset Parameters

Name Type Attribute Default Description
longitude number longitude of position to calculate
latitude number longitude of position to calculate
date Date optional today date for sunrise/sunset
zenith number optional 90°50 ( official : 90°50' , civil : 96 , nautical : 102 , astronomical : 108 )

sunset returns

Type Description
Date date/time of sunset

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @mangar2/sun

    Weekly Downloads

    0

    Version

    1.0.1

    License

    LGPL-3.0-or-later

    Unpacked Size

    9.29 kB

    Total Files

    5

    Last publish

    Collaborators

    • mangar2