Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

convert to seconds

hi guys, i want to convert 12:15:44 to seconds how can i do that

thanx.

1 Solution

Accepted Solutions
alexandros17
Partner - Champion III
Partner - Champion III

hour('12:15:44')*3600+minute('12:15:44')*60+second('12:15:44')

let me know

View solution in original post

7 Replies
alexandros17
Partner - Champion III
Partner - Champion III

hour('12:15:44')*3600+minute('12:15:44')*60+second('12:15:44')

let me know

MK_QSL
MVP
MVP

=Time('12:15:44')*24*60*60

Not applicable
Author

Num('12:15:44') * 86400

This converts your time field to a number which represents the fraction of a day (0.51092592592593)

Then multiply by 86400 because there are 86400 seconds in a day

its_anandrjs

Try this also in any text object

=Second( Time('12:15:44')) +

  Minute( Time('12:15:44')) * 60 +

  Hour( Time('12:15:44')) * 60 * 60

Not applicable
Author

Thank you guys, all the solutions that you have suggested are correcte.

alexandros17
Partner - Champion III
Partner - Champion III

... could you please give marks??

Not applicable
Author

Try Interval('12:15:44','s')) for a more simplistic solution keep in mind that you need the date to have the right format.