Handbook
Glossary
solar-noon ( timestamp longitude -- new-timestamp )
Calendar
Prev:
sunset ( timestamp latitude longitude -- new-timestamp )
Next:
Calendar facts
Vocabulary
calendar
Inputs
timestamp
a
timestamp
longitude
a
real
Outputs
new-timestamp
a
timestamp
Word description
Calculates solar noon of the given day at the given longitude in the given timezone.
Definition
USING:
accessors
calendar.private
kernel
math
math.functions
;
IN:
calendar
:
solar-noon
( timestamp longitude -- new-timestamp )
[
[
noon
]
]
dip
[
4
*
]
curry
compose
[
[
equation-of-time
]
bi
+
minutes
time-
[
round
>integer
]
change-second
]
curry
preserve-gmt-offset
;