Thank you very much Samo, I actually want to display it on an Lcd but your code is very helpfull for me to understand how the actual clock works Thanks again -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.