Thanks for that, but its not just sunrise or sunset times. I also calculate sun's position at various degrees below the horizon and if twilight exists in a location, hence the reason for calculating. But, that is an interesting library, and I could use it to add moon data to my app.
The question I ought to be asking, is how to convert a number like 5.5 to a time to give 5:30am. The code DateTime(number * TicksPerHour) does not appear to give me the correct answer.