()
| 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); |
nothing calls this directly
no test coverage detected