Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
SatyaPaleti
Creator III
Creator III

How to convert seconds in to DD:HH:MM:SS format

Hi Folks,

How can we convert seconds in to DD:HH:SS format

for example I am having 20400062 seconds. How can we show this in to Days Hours Minutes seconds format  DD:HH:MM:SS

Could you please help on this

Thanks and Regards,

Satya

22 Replies
effinty2112
Master
Master

Hi Satya,

Here's another way:

= Replace(

Replace(

Replace(

Replace(

Interval(20400062/24/60/60,'dd U hh V mm X ss Z')

,'U', 'Days'),

'V', 'Hr'),

'X','Min'),

'Z', 's')

returns:

236 Days 02 Hr 41 Min 02 s

Regards

Andrew

SatyaPaleti
Creator III
Creator III
Author

Thank you Andrew

Anonymous
Not applicable

Simple but effective!!