sunrise ( timestamp latitude longitude -- new-timestamp ) - Factor Documentation

sunrise ( timestamp latitude longitude -- new-timestamp )
Calendar



Vocabulary
calendar

Inputs
timestamp a timestamp
latitude a real
longitude a real


Outputs
new-timestamp a timestamp


Word description
Calculates the time of sunrise on the given day at the given location in the given timezone.

Definition
USING: calendar.private math ;

IN: calendar

: sunrise ( timestamp latitude longitude -- new-timestamp )
[ + ] (sunrise/sunset) ;

AltStyle によって変換されたページ (->オリジナル) /