MCPcopy Index your code
hub / github.com/tdewolff/minify / currentDateArray

Function currentDateArray

_benchmarks/sample_moment.js:2637–2648  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

2635 }
2636
2637 function currentDateArray(config) {
2638 // hooks is actually the exported moment object
2639 var nowValue = new Date(hooks.now());
2640 if (config._useUTC) {
2641 return [
2642 nowValue.getUTCFullYear(),
2643 nowValue.getUTCMonth(),
2644 nowValue.getUTCDate(),
2645 ];
2646 }
2647 return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];
2648 }
2649
2650 // convert an array to a date.
2651 // the array should mirror the parameters below

Callers 1

configFromArrayFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…