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!

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)

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!