Well, if you have PHP, you could echo the time in seconds straight into the script. And if you're up for it, do some hardcore mathematics to calculate the seconds, minutes and hours

Then, once you have the seconds, minutes and hour values in separate variables, you could update the seconds variable once every 1000ms, then the minutes variable once seconds hits 60, and so on.