Hey, I just did this recently. Except my "analog clock" runs on SIMULATED time... that is, I feed it a number (from 0 to 1440) and it returns the time of day display.
0 = Midnight
60 = 1 AM
You get the idea
Mine is not very sophisticated, but you will get an idea or two by looking at it.
I hope it helps you.
Drop me an email if you want and ask questions...
tomj@flash.net
Adios,
-Tom