[Remind-Fans] Calculating solar noon (was Re: sun moon data)
Dianne Skoll
dianne at skoll.ca
Fri Mar 18 11:19:55 EDT 2022
On Fri, 18 Mar 2022 12:10:30 -0300
Sector11 via Remind-fans <remind-fans at lists.skoll.ca> wrote:
> I never thought to use TZ.
> Using TZ as shown do your also get:
> ----------
> Mittagssonne: 361
> ----------
> for solar noon?
I haven't tried, but probably. If you substract one TIME from another,
the resulting value is an INT representing the difference in minutes.
So for example:
$ echo 'msg [18:20 - 06:20]' | remind -
720
$ echo 'msg [(18:20 - 06:20)/2]' | remind -
360
Solar Noon should probably be: [sunrise() + (sunset() - sunrise())/2]
Because it is: (lighttime-length/2) + sunrise.
Regards,
Dianne.
More information about the Remind-fans
mailing list