Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2020 05:16 AM
Hi All,
Please advise how to convert duration result from second to hh:mm:ss (hours: Minutes: second).
On change script-
Script include -
Solved! Go to Solution.
Labels:
- Labels:
-
Incident Management
-
Service Catalog
1 ACCEPTED SOLUTION

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2020 05:37 AM
Hi Radhe,
Replace line 8 in script include with below.
var h = Math.floor(dur / 3600);
var m = Math.floor(dur % 3600 / 60);
var s = Math.floor(dur % 3600 % 60);
var finalis=h +':'+m+':'+':'+s;
return finalis;
10 REPLIES 10

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2020 05:48 AM