Solved

How can I display a decimal number in HH:MM:SS format when creating metric?

  • 24 November 2021
  • 2 replies
  • 182 views

Hi guys,

I have request for creating metrics with the formatting like HH:MM or MM:SS or HH:MM:SS like the image above. My metric will return a decimal number and then I must format it in the time format. Assume that my metric result is a number of seconds, I think that maybe I will divide the number by 86400.0 (the number of seconds in a day), 3600.0 (the number of minutes in a day) and 60 (the number of hours in a day).

This is the first time I’ve formatted metric related to time format, so I don’t have any idea about it. 

Do you have any better idea?

Thanks for your help!

icon

Best answer by Iva Gasparekova 24 November 2021, 17:17

View original

2 replies

Userlevel 3

Hi Tuan,

Can you try to adjust your formatting as in my example below, please?

{{{3600||00}}}:{{{60|60|00}}}:{{{|60|00}}}


You can find some hints in our documentation as well.

Hi Tuan,

Can you try to adjust your formatting as in my example below, please?

{{{3600||00}}}:{{{60|60|00}}}:{{{|60|00}}}


You can find some hints in our documentation as well.

Thank you so much for helping me. I will try it. 

Reply