Sunrise + Sunset

Is there a function for calculation of sunrise and sunset?
Many greetings,
Dino 
There are various "places":http://bit.ly/NLTQ1x online where you can find "examples":http://williams.best.vwh.net/sunrise_sunset_algorithm.htm of equations you can use to calculate it.