LogDrains Timestamp Type
Answered
Sloth bear posted this in #help-forum
Sloth bearOP
https://vercel.com/docs/observability/log-drains-overview/log-drains-reference
What is the type on the timestamp on the logdrain log?
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 work2 Replies
@Sloth bear 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?
it's not documented so we can't know for sure, but i believe
new Date(<timestamp>) will workAnswer
if you are using a different programming language, just try getting a log drain and see what type that value is