Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
abhaysingh
Specialist II
Specialist II

Exp Help

HI All,

I have two Time Value

Time1                               Time 2                              Difference = Time1 - Time2

10:43:36 AM                    10:22:00 AM                         Ouput Required in Seconds

I am simply Doing Time1-Time2 and Getting output 175.98499988425;

expected output is 21:36 Minutes... Final result want in seconds

Please Suggest

Abhay

12 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Time in minutes:

(Frac(Time1) - Frac(Time2)) * 1440

Time in seconds:

(Frac(Time1) - Frac(Time2)) * 1440 * 60

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
jonathandienst
Partner - Champion III
Partner - Champion III

>>175.98499988425

There are 176 days between these two timestamps. Are you sure the simple difference in minutes is meaningful?

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
pratap6699
Creator
Creator

by differenciate time interals we use interval function

=Interval(Time#('10:43:36 AM', 'hh:mm:ss TT') - Time#('10:22:00 AM', 'hh:mm:ss TT'), 's')