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 |