# Formatting/Converting Siemens TIME type to display a timer

**URL:** <https://forum.inductiveautomation.com/t/formatting-converting-siemens-time-type-to-display-a-timer/27788>\
**Category:** Ignition\
**Created:** [August 26, 2019, 11:00pm UTC](https://forum.inductiveautomation.com/t/formatting-converting-siemens-time-type-to-display-a-timer/27788 "2019-08-26T23:00:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Reksio](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/reksio/32/7669_2.png) [@Reksio](https://forum.inductiveautomation.com/u/Reksio)\
**Post date:** [August 26, 2019, 11:00pm UTC](https://forum.inductiveautomation.com/t/formatting-converting-siemens-time-type-to-display-a-timer/27788/1 "2019-08-26T23:00:26Z")

</div>

Hi,  
I know this subject came up in the past, but I cant open the attachments that would otherwise display a solution to my question. Im trying to properly display a Siemens Time format as Hours,Minutes, Seconds. Can someone point me to the right place?  
Thanks in advance,

---

<div class="post-metadata">

**Author:** ![jlivingston](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@jlivingston](https://forum.inductiveautomation.com/u/jlivingston)\
**Post date:** [August 27, 2019, 7:46pm UTC](https://forum.inductiveautomation.com/t/formatting-converting-siemens-time-type-to-display-a-timer/27788/2 "2019-08-27T19:46:45Z")

</div>

Here you are, for 7.9 and 8 ( information is theirs in the below URL )

> [@SIEMENS Driver DATE\_AND\_TIME values](http://forum.inductiveautomation.com/t/siemens-driver-date-and-time-values/5198/5):
>
> If you have access to the plc programm there is a workaround. You can use the system functions DT\_TOD and DT\_DATE to convert a date into days and time of day. The DATE is an 16-bit value with the days since 1990-01-01 and TOD is a 32-bit value with the count of milliseconds since midnight. These value can easily be converted to a java date in Ignition. I added a function to our plc programs that converts all DT values and stores them in a seperate datablock which is then read by Ignition.

(See the message below instead- there are better ways)

---

<div class="post-metadata">

**Author:** ![chi](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@chi](https://forum.inductiveautomation.com/u/chi)\
**Post date:** [August 27, 2019, 8:11pm UTC](https://forum.inductiveautomation.com/t/formatting-converting-siemens-time-type-to-display-a-timer/27788/3 "2019-08-27T20:11:28Z")

</div>

The Siemens `TIME` is a simple unsigned DINT with a milliseconds value.  
There are some solutions at the end of [this topic](http://forum.inductiveautomation.com/t/converting-millisecond-to-time-read-out-hh-mm-ss/11819) to display milliseconds as `hh:mm:ss`
