I'm using @polkadot-js to decode extrinsic data. The following method call returns a timestamp at a specific block, but I don't know how to parse this.
I tried assuming that it's a unix timestamp in seconds and parsing it like so, but it doesn't fit. Is this in nanoseconds? milliseconds?
How can I parse it into a date object in my favorite programming language?
const timestamp = await api.query.timestamp.now.at(blockHash);
(Could it be that my timestamps being incorrectly decoded?)