Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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

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

3 Replies
gjeremy1617088143

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.

 

 

gjeremy1617088143

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