(config)
| 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 |
no outgoing calls
no test coverage detected
searching dependent graphs…