Handbook
Glossary
sunset ( timestamp latitude longitude -- new-timestamp )
Calendar
Prev:
sunrise ( timestamp latitude longitude -- new-timestamp )
Next:
solar-noon ( timestamp 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 sunset on the given day at the given location in the given timezone.
Definition
USING:
calendar.private
math
;
IN:
calendar
:
sunset
( timestamp latitude longitude -- new-timestamp )
[
-
]
(sunrise/sunset)
;