16 digit epoch time to timestamp

Six Stars

16 digit epoch time to timestamp

Hi,
I have a input field which has 16 digit timestamp. how can i convert it into timestamp.
i saw other posts related to the topic but there epoch timestamp was of 10 digit.
Any help ?
Thanks & regards,
Jugal
Six Stars

Re: 16 digit epoch time to timestamp

1120326200041000 is an example of the input field
Seventeen Stars

Re: 16 digit epoch time to timestamp

Please take al look at the Java doc of the class SimpleDateFormat. This class is in use also in the Talend routines.
http://docs.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html
In the database you have to create the timestamp with a length expression like e.g. timestamp(12) but this depends on the database type.

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

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog