code: function parseInterval(){
    var options = Array.prototype.slice.call(arguments);
    return function(res){
      var dataset = new Dataset()
        .type('interval');
      each(res.result, function(record, i){
        var index = options[0] && options[0] === 'timeframe.end' ? record.timeframe.end : record.timeframe.start;
        dataset.set(['Result', index], record.value);
      });
      return dataset;
    }
  }
docs: var myParser = Dataset.parser('interval', 'timeframe.end');