Have you looked at the examples with the library ? There is even one called solarTimeRTC which sounds promising ?