Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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

Labels (1)
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

Kushal_Chawda
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
Not applicable
Author

Try,

Expression:

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

Script:

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