Hi,
Many thanks, there is indeed no problem with the calculations.
After the SUN_TIME i used DT_TO_STRF to display the time.
The output of the SUN_TIME is a TOD, the DT_TO_STRF needs a DT as input, my mistake.
The TOD_TO_STRING and the other TOD_TO_ functions are not explained in the englisch help file.
I like your library, Frank.