[Remind-Fans] sunrise / sunset messed up for longitude > 0?
Hershel Safer
hsafer at alum.mit.edu
Thu Mar 8 15:35:07 EST 2007
Hi,
I'm running Remind 3.00.24 on a Linux box. The sunrise() and sunset()
times work fine for me (in Israel). I'm trying to make a calendar for
my son, who is traveling to the Americas, but the sunrise and sunset
times are all wrong for the two locations I've tried (Boston area and
Belize): in March, sunrise is showing up in the afternoon and sunset
is showing up as not happening at all (sunset == 1440).
In the following code, it works ok for _place == 2, but not for
values of 1 and 3. Any suggestions? Thanks,
Hershel
Set _place 3
If _place == 1
Set $location "Newton, MA"
Set $latdeg 42
Set $latmin 13
Set $latsec 12
Set $longdeg 71
Set $longmin 2
Set $longsec 24
Endif
If _place == 2
Set $location "Rehovot"
Set $latdeg 31
Set $latmin 54
Set $latsec 00
Set $longdeg -34
Set $longmin -49
Set $longsec 00
Endif
If _place == 3
Set $location "Ambergris Caye, Belize"
# Lat 18 / 00 / 00 Lon 88 / 00 / 00
Set $latdeg 18
Set $latmin 00
Set $latsec 00
Set $longdeg 88
Set $longmin 00
Set $longsec 00
Endif
Msg Sunrise [sunrise(today())]
Msg Sunset [sunset(today())]
More information about the Remind-fans
mailing list