# Convert the output of flow timer node to human readable format in node red

**URL:** <https://discourse.nodered.org/t/convert-the-output-of-flow-timer-node-to-human-readable-format-in-node-red/72379>\
**Category:** General\
**Tags:** function-node\
**Created:** [18 December 2022 12:35 UTC](https://discourse.nodered.org/t/convert-the-output-of-flow-timer-node-to-human-readable-format-in-node-red/72379 "2022-12-18T12:35:38Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johnson](https://avatars.discourse-cdn.com/v4/letter/j/d07c76/32.png) [@Johnson](https://discourse.nodered.org/u/Johnson)\
**Post date:** [18 December 2022 12:35 UTC](https://discourse.nodered.org/t/convert-the-output-of-flow-timer-node-to-human-readable-format-in-node-red/72379/1 "2022-12-18T12:35:38Z")

</div>

Hi guys ,

I have a doubt in the output of flow timer node .  
Is it possible to convert the start and stop time to human readable form .

 ![Screenshot (211)](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/f/ffb142904edef6bbd5cddb1b59875d0ccf5859ca.png)

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [18 December 2022 12:38 UTC](https://discourse.nodered.org/t/convert-the-output-of-flow-timer-node-to-human-readable-format-in-node-red/72379/2 "2022-12-18T12:38:40Z")

</div>

try clicking on that line in the debug. If it recognises it as a time it will roll over to showing it in other formats.

---

<div class="post-metadata">

**Author:** ![Johnson](https://avatars.discourse-cdn.com/v4/letter/j/d07c76/32.png) [@Johnson](https://discourse.nodered.org/u/Johnson)\
**Post date:** [18 December 2022 12:45 UTC](https://discourse.nodered.org/t/convert-the-output-of-flow-timer-node-to-human-readable-format-in-node-red/72379/3 "2022-12-18T12:45:28Z")

</div>

Yes it is changing @dceejay  
But how can we get it in milisecond or micrsecond form

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [18 December 2022 12:59 UTC](https://discourse.nodered.org/t/convert-the-output-of-flow-timer-node-to-human-readable-format-in-node-red/72379/4 "2022-12-18T12:59:53Z")

</div>

it is in milliseconds from epoch form already.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [18 December 2022 14:11 UTC](https://discourse.nodered.org/t/convert-the-output-of-flow-timer-node-to-human-readable-format-in-node-red/72379/5 "2022-12-18T14:11:45Z")

</div>

If you want to format it in other ways then you can do  
`const start = new Date(msg._performance.start)`  
assuming I have got the path correct. Then you can use all the methods of [javascript Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) to manipulate it.

---

<div class="post-metadata">

**Author:** ![Johnson](https://avatars.discourse-cdn.com/v4/letter/j/d07c76/32.png) [@Johnson](https://discourse.nodered.org/u/Johnson)\
**Post date:** [18 December 2022 17:04 UTC](https://discourse.nodered.org/t/convert-the-output-of-flow-timer-node-to-human-readable-format-in-node-red/72379/6 "2022-12-18T17:04:40Z")

</div>

oh okay i am new to node red. I did not knew it is in ms already  
thank you for your reply .

---

<div class="post-metadata">

**Author:** ![Johnson](https://avatars.discourse-cdn.com/v4/letter/j/d07c76/32.png) [@Johnson](https://discourse.nodered.org/u/Johnson)\
**Post date:** [18 December 2022 17:06 UTC](https://discourse.nodered.org/t/convert-the-output-of-flow-timer-node-to-human-readable-format-in-node-red/72379/7 "2022-12-18T17:06:18Z")

</div>

Ok it was helpful thank you @Colin

---

<div class="post-metadata">

**Author:** ![paulkeates](https://avatars.discourse-cdn.com/v4/letter/p/9de053/32.png) [@paulkeates](https://discourse.nodered.org/u/paulkeates)\
**Post date:** [18 December 2022 19:40 UTC](https://discourse.nodered.org/t/convert-the-output-of-flow-timer-node-to-human-readable-format-in-node-red/72379/8 "2022-12-18T19:40:01Z")

</div>

Hi,

For difficult or aggravating date / time manipulation you can also install the Moment node which offers some very extensive capabilities. Maybe more than you need?

Cheers,

Paul

---

<div class="post-metadata">

**Author:** ![Johnson](https://avatars.discourse-cdn.com/v4/letter/j/d07c76/32.png) [@Johnson](https://discourse.nodered.org/u/Johnson)\
**Post date:** [19 December 2022 12:57 UTC](https://discourse.nodered.org/t/convert-the-output-of-flow-timer-node-to-human-readable-format-in-node-red/72379/9 "2022-12-19T12:57:38Z")

</div>

Thank you @paulkeates i will try with moment node

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [17 February 2023 12:58 UTC](https://discourse.nodered.org/t/convert-the-output-of-flow-timer-node-to-human-readable-format-in-node-red/72379/10 "2023-02-17T12:58:03Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
