condition sun

condition sun Structure: Conditional on the Sun's position being between two events.

condition sun structure
not before astronomical sun event: optional
not after astronomical sun event: optional
geolocation geolocation
date date: optional


sun position tests if the Sun's position, observed from given location on Earth, is between two astronomic events. Typically this condition is used to test if the date and time is during the day or night.


not before

The date is not before this Sun event.

not after

The date is not after this Sun event.


Location to calculate Sun position from.


Date to calculate Sun position on.