[Remind-Fans] Sunrise, Sunset (Swiftly Flow the Days) ...
Mike Harris
mjharris-lists at rcn.com
Sun May 1 23:38:35 EDT 2005
I'm running into a little bit of a problem with my sunset and sunrise times, and I'm wondering if some knowledgeable experts here could point out the flaw in my .reminders file.
-------------[code begins here]-------------
fset _srtd() coerce("STRING", _no_lz(_am_pm(sunrise(today()))))
fset _sstd() coerce("STRING", _no_lz(_am_pm(sunset(today()))))
fset _srtm() coerce("STRING", _no_lz(_am_pm(sunrise(today()+1))))
fset _sstm() coerce("STRING", _no_lz(_am_pm(sunset(today()+1))))
MSG Sunset today at [_sstd()]. Sun's up tomorrow from [_srtm()] to [_sstm()].%"%"%
MSG The next full moon is on [mon(moondate(2))] [day(moondate(2))], [year(moondate(2))].%"%"%
--------------[code ends here]--------------
_no_lz is no leading zero, _am_pm formats it in the appropriate time and date.
The problem is that it didn't account for the change in Daylight Savings Time, it appears. I've also often noticed that the estimates are slightly different than the Chicago Tribune's estimates, but I'm guessing that's based on the fact that the above is most likely just generated by an algorithm.
Any idea what to add?
Thanks,
Mike
More information about the Remind-fans
mailing list