# QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
LINKEDIN LIVE: Democratizing data to enhance customer-centricity. JULY 29TH REGISTER TODAY
cancel
Showing results for
Did you mean:
Creator

## Convert HH:MM:SS into seconds

Hi All,

I have one field named "Duration" which contains the time values in HH:MM:SS format (like 00:12:36). I want to convet these values in Seconds. Please suggest me.

Thanks.

1 Solution

Accepted Solutions

Hi

Do you want to format it to display seconds (assuming Duration is a valid time value?

=Interval(Duration, 'ss')

Or assuming it is a string?

=Interval(Time#(Duration), 'HH:MM:SS'), 'ss')

Or do you want to convert it to seconds (assuming it is a valid time value)

=Duration * 86400

Or convert it (assuming it is a string)

=Time#(Duration, 'HH:MM:SS') * 86400

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
3 Replies
Master III

hi

try this

=Interval(Time#('00:12:36','hh:mm:ss'),'ss')

Contributor III

For Seconds =Interval(Time#('00:12:36','hh:mm:ss'),'ss')

Hi

Do you want to format it to display seconds (assuming Duration is a valid time value?

=Interval(Duration, 'ss')

Or assuming it is a string?

=Interval(Time#(Duration), 'HH:MM:SS'), 'ss')

Or do you want to convert it to seconds (assuming it is a valid time value)

=Duration * 86400

Or convert it (assuming it is a string)

=Time#(Duration, 'HH:MM:SS') * 86400

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Community Browser