code: function dateTimeListURL(startDate, endDate, agg, sourceIds, pagination) {
        var url = baseURL() + "/location/datum/list?locationId=" + locationId;
        if (startDate) {
          url += "&startDate=" + encodeURIComponent(sn.format.dateTimeFormatURL(startDate));
        }
        if (endDate) {
          url += "&endDate=" + encodeURIComponent(sn.format.dateTimeFormatURL(endDate));
        }
        if (agg) {
          url += "&aggregate=" + encodeURIComponent(agg);
        }
        if (Array.isArray(sourceIds)) {
          url += "&sourceIds=" + sourceIds.map(function(e) {
            return encodeURIComponent(e);
          }).join(",");
        }
        if (pagination !== undefined) {
          if (pagination.max > 0) {
            url += "&max=" + encodeURIComponent(pagination.max);
          }
          if (pagination.offset > 0) {
            url += "&offset=" + encodeURIComponent(pagination.offset);
          }
        }
        return url;
      }
docs: Generate a SolarNet {@code /datum/list} URL.
  
  @param {Date} startDate The starting date for the query, or <em>null</em> to omit
  @param {Date} endDate The ending date for the query, or <em>null</em> to omit
  @param {String|Number} agg A supported aggregate type (e.g. Hour, Day, etc) or a minute precision Number
  @param {Array} sourceIds Array of source IDs to limit query to
  @param {Object} pagination An optional pagination object, with <code>offset</code> and <code>max</code> properties.
  @return {String} the URL to perform the list with
  @memberOf sn.api.loc.locationUrlHelper
  @preserve