How to calculate dawn / dusk times

Posted by ryyst on Stack Overflow See other posts from Stack Overflow or by ryyst
Published on 2010-04-09T17:27:21Z Indexed on 2010/04/09 17:33 UTC
Read the original article Hit count: 351

Filed under:

Hi,

I'm currently using this code to calculate the sunrise / sunset times. (To be more precise, I'm looking for civil dawn / civil dusk times which are defined as the time when the sun is between 0° and -6° altitude). As a next step, I'd like to compute the dawn beginning and dusk ending times. I believe the calculations must be very similar.

My idea is that if I want to calculate the dawn beginning (dusk ending) time for a place I just calculate the sunrise (sunset) times for a place 6° farther east (west).

Can somebody confirm this assumption, or am I thinking wrong?

Thanks for answers!

-- Ry

© Stack Overflow or respective owner

Related posts about c