(input, format, locale, strict, isUTC)
| 17333 | } |
| 17334 | |
| 17335 | function createLocalOrUTC (input, format, locale, strict, isUTC) { |
| 17336 | var c = {}; |
| 17337 | |
| 17338 | if (locale === true || locale === false) { |
| 17339 | strict = locale; |
| 17340 | locale = undefined; |
| 17341 | } |
| 17342 | |
| 17343 | if ((isObject(input) && isObjectEmpty(input)) || |
| 17344 | (isArray(input) && input.length === 0)) { |
| 17345 | input = undefined; |
| 17346 | } |
| 17347 | // object construction must be done this way. |
| 17348 | // https://github.com/moment/moment/issues/1423 |
| 17349 | c._isAMomentObject = true; |
| 17350 | c._useUTC = c._isUTC = isUTC; |
| 17351 | c._l = locale; |
| 17352 | c._i = input; |
| 17353 | c._f = format; |
| 17354 | c._strict = strict; |
| 17355 | |
| 17356 | return createFromConfig(c); |
| 17357 | } |
| 17358 | |
| 17359 | function createLocal (input, format, locale, strict) { |
| 17360 | return createLocalOrUTC(input, format, locale, strict, false); |
no test coverage detected