Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Eric_Talend
Creator
Creator

Convert mtime to date ?

Hello,

I have a file and I use the component tFileProperties to have several informations to my file.

I would like to convert mtime to date.

I search and I find this :

https://community.talend.com/s/article/Converting-a-Unix-timestamp-to-a-readable-date-67AVR

but it's not ok for this example.

Who has had this before?

Kinds regards;

Labels (2)
1 Solution

Accepted Solutions
gjeremy1617088143
Creator III
Creator III

hi @Eric Vincent​ , you can try something like this : new java.util.Date((long)(row1.mtime*1000)/1000)

in a tJavaRow or a tMap component

 

View solution in original post

4 Replies
gjeremy1617088143
Creator III
Creator III

hi @Eric Vincent​ , you can try something like this : new java.util.Date((long)(row1.mtime*1000)/1000)

in a tJavaRow or a tMap component

 

Eric_Talend
Creator
Creator
Author

Hi @guenneguez jeremy​ 

 

thanks for this answer.

 

 

smith11484
Contributor II
Contributor II

Please Can You tell me something more about that?

 

 

gjeremy1617088143
Creator III
Creator III

Hi @Raymond James​ , what do you want to know about it ?