Have a look at the Analog Clock example.