Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Gunner49
Contributor
Contributor

Issue with Date if milliseconds are more than 3

Hi All,

I need output date in format "9999-12-31 23:59:59.999999". If i am using expression in tMap as 

TalendDate.parseDate("yyyy-MM-dd HH:mm:ss.SSSSSS","9999-12-31 23:59:59.999999"), output date is coming as "10000-01-01 00:16:38.000999", it is getting incremented by 1.

If i am using same function for upto 3 microseconds i.e. TalendDate.parseDate("yyyy-MM-dd HH:mm:ss.SSS","9999-12-31 23:59:59.999"), it is giving expected result.

 

Can you please suggest what format should i use for getting microseconds upto 6 digits.

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi

it is probably due to a precision problem, Talend round your .999999 to 1

I suggest you to set precision = 6 to your date in your schema.

 

Pierre

 

View solution in original post

1 Reply
Anonymous
Not applicable

Hi

it is probably due to a precision problem, Talend round your .999999 to 1

I suggest you to set precision = 6 to your date in your schema.

 

Pierre