Public
Edited
Nov 3, 2023
Insert cell
Insert cell
arrow = require('apache-arrow@6.0.1')
Insert cell
ts = new Date('9999-12-31T23:59:59.999999Z').getTime()
Insert cell
timestampVector = arrow.Builder.new({ type: new arrow.TimestampMicrosecond() }).append(ts).finish().toVector()
Insert cell
table = arrow.Table.new( [timestampVector], ['ts'])
Insert cell
column = table.getColumnAt(0)
Insert cell
result = column.get(0)
Insert cell
resultTimeString = new Date(column.get(0)).toISOString()
Insert cell
moment = require('moment')
Insert cell
timeInMomemnt = moment.utc(result).toString()
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more