MCPcopy Create free account
hub / github.com/csev/py4e / moment_format__toISOString

Function moment_format__toISOString

code/gmane/Chart.bundle.js:3531–3543  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3529 }
3530
3531 function moment_format__toISOString () {
3532 var m = this.clone().utc();
3533 if (0 < m.year() && m.year() <= 9999) {
3534 if ('function' === typeof Date.prototype.toISOString) {
3535 // native implementation is ~50x faster, use it when we can
3536 return this.toDate().toISOString();
3537 } else {
3538 return formatMoment(m, 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]');
3539 }
3540 } else {
3541 return formatMoment(m, 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]');
3542 }
3543 }
3544
3545 function format (inputString) {
3546 var output = formatMoment(this, inputString || utils_hooks__hooks.defaultFormat);

Callers

nothing calls this directly

Calls 2

formatMomentFunction · 0.85
cloneMethod · 0.45

Tested by

no test coverage detected