this little snippet makes a real-time analog clock with the GD library.
don't assume that it's good for the server though...

download options for image editing / analog GD clock

you can download the source as PHP file,

open the file as plain text in a new window or

get the code in a textarea to copy it.