There are lots of examples available. You can have a look at the Analog Clock example in the docs.