Showing “Duration (sec)” as HH:MM instead of HH:MM:SS


This Content is from Stack Overflow. Question asked by Chris

When creating a scorecard, I can set the metric type to “Duration (sec)” to display the metric as a time in the HH:MM:SS format.

Is there any way to round to just HH:MM?

E.g. for a metric of “600,” it displays as 00:10:00 (10 minutes.) I want it to display simply as 00:10

Changing the decimal precision doesn’t work.

For my example, checking compact numbers removes the HH rather than SS i.e. updates to 10:00 instead of 00:10 I’m looking for.


This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?