MCPcopy Create free account
hub / github.com/feiyu563/PrometheusAlert / formatMoment

Function formatMoment

static/plugins/chart.js/Chart.bundle.js:15316–15325  ·  view source on GitHub ↗
(m, format)

Source from the content-addressed store, hash-verified

15314
15315 // format date using native date object
15316 function formatMoment(m, format) {
15317 if (!m.isValid()) {
15318 return m.localeData().invalidDate();
15319 }
15320
15321 format = expandFormat(format, m.localeData());
15322 formatFunctions[format] = formatFunctions[format] || makeFormatFunction(format);
15323
15324 return formatFunctions[format](m);
15325 }
15326
15327 function expandFormat(format, locale) {
15328 var i = 5;

Callers 2

toISOStringFunction · 0.85
formatFunction · 0.85

Calls 2

expandFormatFunction · 0.85
makeFormatFunctionFunction · 0.85

Tested by

no test coverage detected