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

Function currentDateArray

static/plugins/chart.js/Chart.bundle.js:16745–16752  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

16743 }
16744
16745 function currentDateArray(config) {
16746 // hooks is actually the exported moment object
16747 var nowValue = new Date(hooks.now());
16748 if (config._useUTC) {
16749 return [nowValue.getUTCFullYear(), nowValue.getUTCMonth(), nowValue.getUTCDate()];
16750 }
16751 return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];
16752 }
16753
16754 // convert an array to a date.
16755 // the array should mirror the parameters below

Callers 1

configFromArrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected