aqTimestampMeta = function (table) {
const toType = function (obj) {
return {}.toString.call(obj).match(/\s([a-zA-Z]+)/)[1];
};
return table
.columnNames()
.map((x) => ({
column: x,
data: table.column(x)
}))
.filter((x) => toType(x.data) == "TimestampVector")
.map((x) => {
x.unit = x.data.type.unit;
x.timezone = x.data.type.timezone;
delete x.data;
return x;
});
}