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...

Calling Talend Open Studio Users

The first 100 community members completing the Open Studio survey win a $10 gift voucher.

Start the survey

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Put Massive Amounts of Data to Work

Learn how to make your data more available, reduce costs and cut your build time

Watch Now

How OTTO Utilizes Big Data to Deliver Personalized Experiences

Read about OTTO's experiences with Big Data and Personalized Experiences

Blog

Talend Integration with Databricks

Take a look at this video about Talend Integration with Databricks

Watch Now