Hello Andreas
Refer to this link:
http://www.priman2000.co.uk/Downloads/Index_Dwnld.html
"Time calculations.zip" has exactly what you are looking for and more.
Greetings
Alipio
---------------------------------------------------------
"Qod natura non dat, Salmantica non praestat"
---------------------------------------------------------