Package elisa :: Package plugins :: Package bad :: Package weather :: Module sun
[hide private]
[frames] | no frames]

Module sun

source code

calculates sunrise or sunset for a given time and place the code is from the last millenium and as far as I can remember modeled after some formular in some book about astronomy

Functions [hide private]
 
normalize(z, d) source code
 
suntime(type, lat, lon, tz, yday)
type = rise or set tz = diff from gmt date = time.localtime() yday = date[7]
source code