@Colin, @Randy: Thank you for our inputs.
I would like to use my code like this because the clock is only a part of my template and so I would not like to use the inject node. But it is a solution.
I just found this post but I would not like to put it on the title bar but in the site like my examplecode. I' m not an expert and so I have problems to change the code.