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: 
lmonincx
Creator II
Creator II

from seconds back to HH:MM:SS format

Hi,

I have a field loaded from the source containing the seconds a call has been open, I would like to display this not in seconds but in the format hh:mm:ss, is there such a syntax available?

Many thanks!

Linda Monincx

1 Solution

Accepted Solutions
Not applicable

Hi Linda,

see the short example.

Good luck.

Rainer

View solution in original post

8 Replies
Not applicable

Hi Linda,

see the short example.

Good luck.

Rainer

Not applicable

Hi Linda,

Try the following Syntax :

Time#(Your_Seconds_Field,'ss')

lmonincx
Creator II
Creator II
Author

Thanks that works Big Smile

Linda

lmonincx
Creator II
Creator II
Author

Thanks that works Big Smile

Linda

Not applicable

Anyone knows which solution is the most efficient between the two proposed ?

lmonincx
Creator II
Creator II
Author

HI,

The formula: Time#(Your_Seconds_Field,'ss') is giving back the seconds only, like when i have 9000 seconds this gives back 9000.

The other formula: Time(Sec/86400, 'hh:mm:ss') gives back on the 9000 seconds: 02:30:00 , this was the value I was looking for.

Regards,

Linda

Not applicable

My fault :

If you put the Field corresponding to

Time#(Your_Seconds_Field,'ss')
in a Table Box for example, you need to change the override the default format to Time.


If you use instead

Time(Time#(Your_Seconds_Field,'ss'))
, the format of your field will be in hh:mm:ss by default...


Just that i am not very ethusiastic about dividing a field by 86400 to have a good format... Hmm

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

If your call may be open for more than a day, you can use Interval() instead of Time().

Interval(Seconds/86400, 'D hh:mm:ss')

-Rob