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 .
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 .
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.
it is in milliseconds from epoch form already.
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 to manipulate it.
oh okay i am new to node red. I did not knew it is in ms already
thank you for your reply .
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
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.