nl_tokens: Date argument helpers
pl_tokens: function collectDateArguments ( args , allowDuration ) { var obj , arr ; if ( isObject ( args [ 0 ] ) ) { return args ; } else if ( isNumber ( args [ 0 ] ) && ! isNumber ( args [ 1 ] ) ) { return [ args [ 0 ] ] ; } else if ( isString ( args [ 0 ] ) && allowDuration ) { return [ getDateParamsFromString ( args [ 0 ] ) , args [ 1 ] ] ; } obj = { } ; DateArgumentUnits . forEach ( function ( u , i ) { obj [ u . <mask> ] = args [ i ] ; } ) ; return [ obj ] ; }