MCPcopy Create free account
hub / github.com/alignoth/alignoth / It

Function It

resources/vega.min.js:596–628  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

594 return r < e ? new Array(e - r + 1).join(0) + n : n;
595 }
596 function It(t) {
597 var e,
598 n = t.getUTCHours(),
599 r = t.getUTCMinutes(),
600 i = t.getUTCSeconds(),
601 o = t.getUTCMilliseconds();
602 return isNaN(t)
603 ? "Invalid Date"
604 : ((e = t.getUTCFullYear()) < 0
605 ? "-" + jt(-e, 6)
606 : e > 9999
607 ? "+" + jt(e, 6)
608 : jt(e, 4)) +
609 "-" +
610 jt(t.getUTCMonth() + 1, 2) +
611 "-" +
612 jt(t.getUTCDate(), 2) +
613 (o
614 ? "T" +
615 jt(n, 2) +
616 ":" +
617 jt(r, 2) +
618 ":" +
619 jt(i, 2) +
620 "." +
621 jt(o, 3) +
622 "Z"
623 : i
624 ? "T" + jt(n, 2) + ":" + jt(r, 2) + ":" + jt(i, 2) + "Z"
625 : r || n
626 ? "T" + jt(n, 2) + ":" + jt(r, 2) + "Z"
627 : "");
628 }
629 function Wt(t) {
630 var e = new RegExp('["' + t + "\n\r]"),
631 n = t.charCodeAt(0);

Callers 1

aFunction · 0.85

Calls 1

jtFunction · 0.70

Tested by

no test coverage detected