MCPcopy Index your code
hub / github.com/csev/py4e / createLocalOrUTC

Function createLocalOrUTC

code/gmane/Chart.bundle.js:2965–2982  ·  view source on GitHub ↗
(input, format, locale, strict, isUTC)

Source from the content-addressed store, hash-verified

2963 }
2964
2965 function createLocalOrUTC (input, format, locale, strict, isUTC) {
2966 var c = {};
2967
2968 if (typeof(locale) === 'boolean') {
2969 strict = locale;
2970 locale = undefined;
2971 }
2972 // object construction must be done this way.
2973 // https://github.com/moment/moment/issues/1423
2974 c._isAMomentObject = true;
2975 c._useUTC = c._isUTC = isUTC;
2976 c._l = locale;
2977 c._i = input;
2978 c._f = format;
2979 c._strict = strict;
2980
2981 return createFromConfig(c);
2982 }
2983
2984 function local__createLocal (input, format, locale, strict) {
2985 return createLocalOrUTC(input, format, locale, strict, false);

Callers 2

create_utc__createUTCFunction · 0.85
local__createLocalFunction · 0.85

Calls 1

createFromConfigFunction · 0.85

Tested by

no test coverage detected