MCPcopy Index your code
hub / github.com/feiyu563/PrometheusAlert / createLocalOrUTC

Function createLocalOrUTC

static/plugins/chart.js/Chart.bundle.js:17335–17357  ·  view source on GitHub ↗
(input, format, locale, strict, isUTC)

Source from the content-addressed store, hash-verified

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);

Callers 2

createUTCFunction · 0.85
createLocalFunction · 0.85

Calls 4

isObjectEmptyFunction · 0.85
createFromConfigFunction · 0.85
isObjectFunction · 0.70
isArrayFunction · 0.70

Tested by

no test coverage detected