(config)
| 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 |