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

Function formatMoment

code/gmane/Chart.bundle.js:2072–2081  ·  view source on GitHub ↗
(m, format)

Source from the content-addressed store, hash-verified

2070
2071 // format date using native date object
2072 function formatMoment(m, format) {
2073 if (!m.isValid()) {
2074 return m.localeData().invalidDate();
2075 }
2076
2077 format = expandFormat(format, m.localeData());
2078 formatFunctions[format] = formatFunctions[format] || makeFormatFunction(format);
2079
2080 return formatFunctions[format](m);
2081 }
2082
2083 function expandFormat(format, locale) {
2084 var i = 5;

Callers 2

formatFunction · 0.85

Calls 2

expandFormatFunction · 0.85
makeFormatFunctionFunction · 0.85

Tested by

no test coverage detected