uhm

vedi qua
http://www.srrb.noaa.gov/highlights/...e/sunrise.html

nel codice c'è una funzione in js, vedi se potresti usarla