Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Time format

I want certain format to get difference in two times in total hours: minutes and seconds

Like in attached picture of excel format

1 Solution

Accepted Solutions
er_mohit
Master II
Master II

you must know the format of time field

then use interval function like this

interval(timefield1- timefield2,'hh:mm:ss')

here for both timefield format should be same  if don't then before interval function use timestamp# function

View solution in original post

7 Replies
agni_gold
Specialist III
Specialist III

What you hava , Timestamp or only time ?

Not applicable
Author

time!

look at the picture attached

its 37hours:30minutes:55seconds

er_mohit
Master II
Master II

you must know the format of time field

then use interval function like this

interval(timefield1- timefield2,'hh:mm:ss')

here for both timefield format should be same  if don't then before interval function use timestamp# function

Not applicable
Author

Try  Date(Field,’hh:mm:ss’)

Not applicable
Author

offcourse that would not work!

date is not required

Not applicable
Author

Try this hope it will help

=interval(time1-time2,'hh:mm:ss')

Not applicable
Author

Try this

=Interval(Timestamp#('26-11-2013 02:15 PM','DD-MM-YYYY hh:mm TT')-Timestamp#('24-11-2013 01:30:30 PM','DD-MM-YYYY hh:mm:ss TT'),'hh:mm:ss')

Here first time field need to be greater the second time field other wise u will get the minus value.