MongoDB ObjectId().getTimestamp

One Star

MongoDB ObjectId().getTimestamp

Is there a way to extract the datetime from a Mongo ObjectId?
I'm connecting with tMongoDBInput and want to output to tFileOutputDelimited. Any ideas would be greatly appreciated.
Thanks,
One Star

Re: MongoDB ObjectId().getTimestamp

Is there a way to extract the datetime from a Mongo ObjectId?
I'm connecting with tMongoDBInput and want to output to tFileOutputDelimited. Any ideas would be greatly appreciated.
Thanks,

http://docs.mongodb.org/manual/reference/object-id/
Don't know if Talend provides a feature for that. Else you might write own Java code to get the first four byte of the ID and pasre it to Unix Epoch Seconds...