Handbook
Glossary
sunrise ( timestamp latitude longitude -- new-timestamp )
Calendar
Prev:
Day names in English
Next:
sunset ( timestamp latitude longitude -- new-timestamp )
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)
;