I'm trying to get the timestamp from an ObjectID, but Mongo keeps giving me this error. Am I missing an import? What's the best way to convert the timestamp to a standard date format?
video['date'] = video['_id'].getTimeStamp()
Where'd you see getTimeStamp()
as a method?
According to the docs it should just be:
video['date'] = video['_id'].generation_time
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With