Next.js Discord

Discord Forum

LogDrains Timestamp Type

Answered
Sloth bear posted this in #help-forum
Open in Discord
Sloth bearOP
https://vercel.com/docs/observability/log-drains-overview/log-drains-reference

What is the type on the timestamp on the logdrain log?
"timestamp": <timestamp> Is it unix nano?
Answered by joulev
it's not documented so we can't know for sure, but i believe new Date(<timestamp>) will work
View full answer

2 Replies

Answer
if you are using a different programming language, just try getting a log drain and see what type that value is