Are you trying to make a run hour-meter? (For how long the machine has been running since midnight?)
What version of Ignition?
Do you have a database configured (which will make this much more reliable and useful)?
Tips:
- That's not a script. It's an expression.
- It's a good idea to post formatted code as well as a screengrab so we can copy and edit it. Please see Wiki - how to post code on this forum.