code: 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.unit] = args[i];
      });
      return [obj];
    }
docs: Date argument helpers