{"ScriptPreparationCode":"var nbSeconds = 134;","TestCases":[{"Name":"Moment","Code":"return moment\r\n .utc(moment.duration(nbSeconds, \u0027seconds\u0027).asMilliseconds())\r\n .format(\u0027HH:mm:ss\u0027)\r\n","IsDeferred":false},{"Name":"JS","Code":"var sec_num = parseInt(nbSeconds, 10);\r\n var hours = Math.floor(sec_num / 3600);\r\n var minutes = Math.floor((sec_num - (hours * 3600)) / 60);\r\n var seconds = sec_num - (hours * 3600) - (minutes * 60);\r\n\r\n if (hours \u003C 10) {hours = \u00220\u0022\u002Bhours;}\r\n if (minutes \u003C 10) {minutes = \u00220\u0022\u002Bminutes;}\r\n if (seconds \u003C 10) {seconds = \u00220\u0022\u002Bseconds;}\r\n return nbSeconds;","IsDeferred":false}]}