Quote Originally Posted by fantasy1215 View Post
I've posted a thread about this topic, but It seems dead already, and I haven't got the answer,
So forgive me for another post!
I just wanna calculate the prayer time in middle east country!
I can get the latitude and longitude data, and compute sunrise and sunset time.

I find a site http://www.tanzil.info/praytime/doc/calculation/
which give direction to compute prayer time!
But I have some questions about the formula given in the webpage!
Which formula? There are several on that page.
Firstly, I am not sure in this formula, Does it take east longitude as negative, west longitude as positive?
(Because in the formula of computing sunrise and sunset, It takes east longitude as negative, west longitude as positive. North latitude as positive, South latitude as negative)
That is typical for Lat/Lon coordinates
Secondly, It seems the results computed by the formula are doubles, which are not as
regular time, How can I convert them to regular time?
Really need your help, Thanks!
From looking at the site, it's probably returning Julian dates. You may need to read up on how to convert to some other format:

http://en.wikipedia.org/wiki/Julian_date