{"ScriptPreparationCode":" var getFormattedDurationA = function(duration) {\r\n var formattedTime = [\r\n (\u00270\u0027 \u002B duration.minutes()).slice(-2),\r\n (\u00270\u0027 \u002B duration.seconds()).slice(-2)\r\n ];\r\n if (duration.hours() \u003E 0) {\r\n formattedTime.unshift(duration.hours());\r\n }\r\n return formattedTime.join(\u0027:\u0027);\r\n }\r\n\r\n var getFormattedDurationB = function(duration) {\r\n var formattedTime = [\r\n (duration.minutes() \u003E 9 ? \u00270\u0027 : \u0027\u0027) \u002B duration.minutes(),\r\n (duration.seconds() \u003E 9 ? \u00270\u0027 : \u0027\u0027) \u002B duration.seconds()\r\n ];\r\n if (duration.hours() \u003E 0) {\r\n formattedTime.unshift(duration.hours());\r\n }\r\n return formattedTime.join(\u0027:\u0027);\r\n }\r\n\r\n var getFormattedDurationC = function(duration) {\r\n return moment.utc(duration.asMilliseconds()).format((duration.hours() \u003E 0 ? \u0027H:\u0027 : \u0027\u0027) \u002B \u0027mm:ss\u0027);\r\n }","TestCases":[{"Name":"23:50","Code":"var duration1 = moment.duration(1000*60*60 * 23.5);\r\ngetFormattedDurationA(duration1);\r\ngetFormattedDurationB(duration1);\r\ngetFormattedDurationC(duration1);","IsDeferred":false},{"Name":"24:50","Code":"var duration2 = moment.duration(1000*60*60 * 24.5);\r\ngetFormattedDurationA(duration2);\r\ngetFormattedDurationB(duration2);\r\ngetFormattedDurationC(duration2);","IsDeferred":false}]}