A simple dynamic clock picture rendered via HTML5 Canvas API.
No complex algorithm, but the key is a very simple mathematical formula:
The above formula is the key to help you calculating the position of the end point of current second hand.
Demo
Check out the Source Code.