{"ScriptPreparationCode":"var seed = Date.now();\r\n\r\nfunction toISO1(x) {\r\n Number.isFinite(x);\r\n\r\n const time = new Date(x);\r\n \r\n const year = String(time.getUTCFullYear()).padStart(2, \u00270\u0027);\r\n const mo = String(time.getUTCMonth()\u002B1).padStart(2, \u00270\u0027);\r\n const da = String(time.getUTCDate()).padStart(2, \u00270\u0027);\r\n const ho = String(time.getUTCHours()).padStart(2, \u00270\u0027);\r\n const mi = String(time.getUTCMinutes()).padStart(2, \u00270\u0027);\r\n const se = String(time.getUTCSeconds()).padStart(2, \u00270\u0027);\r\n const mil = String(time.getUTCMilliseconds()).padStart(3, \u00270\u0027);\r\n \r\n return \u0060${year}-${mo}-${da}T${ho}:${mi}:${se}.${mil}Z\u0060;\r\n}\r\n\r\nfunction toISO2(x) {\r\n\treturn new Date(x).toISOString();\r\n}","TestCases":[{"Name":"template strings and padding","Code":"var value = toISO1(seed);","IsDeferred":false},{"Name":"toISOString()","Code":"var value = toISO2(seed);","IsDeferred":false}]}