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

Convert seconds to time format

Hi,

I have calculated field in script as Second and now I want to convert it to time format.

for eg. 5326 to 01:28:46

1 Solution

Accepted Solutions
Chanty4u
MVP
MVP

hi,

try lik dis

Interval(TIME_SECONDS/86400, 'hh:mm:ss') as TIME_1

View solution in original post

8 Replies
Chanty4u
MVP
MVP

hi,

try lik dis

Interval(TIME_SECONDS/86400, 'hh:mm:ss') as TIME_1

Chanty4u
MVP
MVP

tamilarasu
Champion
Champion

Try,

Expression:

=Timestamp(FieldName/86400  ,'hh:mm:ss')

Script:

Timestamp(FieldName/86400  ,'hh:mm:ss') as Time

Chanty4u
MVP
MVP

or else

time(YourField/3600/24, 'hh:mm:ss') as YourFiled


Sample attached

Not applicable
Author

U can the time funcion


=time('field'/3600,'hh:mm')

HirisH_V7
Master
Master

Hi,

May be like this,

Data:

LOAD * ,

Time(Time#(Field,'ss'),'hh:mm:ss') as Time

INLINE [

Field

5326

];

Output:

Seconds to Time -213208.PNG

In Text Box:

=Time(Time#(Field,'ss'),'hh:mm:ss')

HTH,

PFA,

Hirish

HirisH
“Aspire to Inspire before we Expire!”
Not applicable
Author

Try,

Expression:

=Timestamp(FieldName/86400  ,'hh:mm:ss')

Script:

Timestamp(FieldName/86400  ,'hh:mm:ss') as Time